Пример #1
0
 /// <summary>
 /// The RemoveUser2OrganizationAsync
 /// </summary>
 /// <param name="input">The input<see cref="OrganizationUserInput"/></param>
 /// <returns>The <see cref="Task"/></returns>
 public async Task RemoveUser2OrganizationAsync(OrganizationUserInput input)
 {
     foreach (var user in input.UserIds)
     {
         await UserManager.RemoveFromOrganizationUnitAsync(user, input.OrganizationId);
     }
 }
Пример #2
0
 /// <summary>
 /// The AddUser2OrganizationAsync
 /// </summary>
 /// <param name="input">The input<see cref="OrganizationUserInput"/></param>
 /// <returns>The <see cref="Task"/></returns>
 public async Task AddUser2OrganizationAsync(OrganizationUserInput input)
 {
     await UserManager.AddToOrganizationUnitAsync(input.UserIds.First(), input.OrganizationId);
 }