clean up for mailing

This commit is contained in:
Paul Schneider 2021-06-03 15:12:29 +01:00
commit 72bf0f458d
14 changed files with 2934 additions and 116 deletions

View file

@ -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);
}