예제 #1
0
 /// <summary>
 /// Присвоить роли пользователям
 /// </summary>
 public static async Task AssignRoles(UserManager <IdentityUser> userManager, IResultCollection <BoutiqueUser> defaultUsersResult) =>
 await defaultUsersResult.
 ResultCollectionOkAsync(defaultUsers => FindUsersInManager(userManager, defaultUsers)).
 ResultCollectionOkBindAsync(usersToAdd => AddUsersToManager(userManager, usersToAdd));