public void Edit(int id)
 {
     try
     {
         var compositeRole = _role.GetDetailCompositeRole(id);
         compositeRole.Description = compositeRole.Description + "#Edit";
         var response = _role.Edit(compositeRole);
         Console.WriteLine(response);
     }
     catch (Exception ex)
     {
         Assert.True(false, ex.Message);
     }
 }
예제 #2
0
 public IActionResult Edit([FromBody] RoleViewModel model)
 {
     return(Ok(_role.Edit(model)));
 }