예제 #1
0
 public Task <bool> RemoveUserFromGroupAsync(string UserId, string GroupName)
 {
     using (var ug = new UserGroupsFactory())
     {
         ug.RemoveUserFromGroup(UserId, GroupName);
     };
     return(Task.FromResult(true));
 }
예제 #2
0
 public Task <bool> RemoveUserFromGroupsAsync(string UserId, string[] GroupNames)
 {
     using (var ug = new UserGroupsFactory())
     {
         foreach (var item in GroupNames)
         {
             ug.RemoveUserFromGroup(UserId, item);
         }
     };
     return(Task.FromResult(true));
 }