public virtual async Task RemoveUserAsync(OrganizationUnitDtoAddOrRemoveUserDto input) { var identityUser = await UserRepository.GetAsync(input.UserId); var origanizationUnit = await OrganizationUnitRepository.GetAsync(input.Id); if (identityUser.IsInOrganizationUnit(input.Id)) { await UserManager.RemoveFromOrganizationUnitAsync(identityUser, origanizationUnit); await CurrentUnitOfWork.SaveChangesAsync(); } }
public virtual async Task AddUserAsync(OrganizationUnitDtoAddOrRemoveUserDto input) { await OrganizationUnitAppService.AddUserAsync(input); }