clean up for mailing
This commit is contained in:
parent
acdec2b6f7
commit
72bf0f458d
14 changed files with 2934 additions and 116 deletions
|
|
@ -782,11 +782,6 @@ namespace Yavsc.Controllers
|
|||
|
||||
_dbContext.DeviceDeclaration.RemoveRange( _dbContext.DeviceDeclaration.Where(g => g.DeviceOwnerId == userId ));
|
||||
|
||||
foreach (var template in _dbContext.MailingTemplate.Where( t=>t.ManagerId == userId ))
|
||||
{
|
||||
template.ManagerId = template.SuccessorId;
|
||||
}
|
||||
|
||||
return await _userManager.DeleteAsync(user);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue