示例#1
0
 public async Task <bool> AddUserToRole(string userId, string userRole)
 {
     try
     {
         await UserRoleController.NewUserRoleAsync(userId, userRole);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Could not add User to Role: " + userRole + " | " + ex.Message);
         return(false);
     }
     return(true);
 }