public void Edit(string adUser)
 {
     try
     {
         adUser = _config.DomainUser + adUser;
         var response = _userRole.Edit(new Authorization.Bll.Models.UserRoleViewModel
         {
             AdUser   = adUser,
             RoleList = new List <int> {
                 2, 6, 8
             }
         });
         Console.WriteLine(response);
     }
     catch (Exception ex)
     {
         Assert.True(false, ex.Message);
     }
 }
예제 #2
0
 public IActionResult Edit([FromBody] UserRoleViewModel model)
 {
     return(Ok(_userRole.Edit(model)));
 }