Пример #1
0
 public IActionResult GetUserRole()
 {
     try
     {
         var users = _userRepository.GetAllUser();
         var roles = _roleRespository.GetAllRole();
         return(ToJson(HttpResult.Success, new { users = users, roles = roles }));
     }
     catch (Exception exc)
     {
         return(ToJson(HttpResult.Exception, message: exc.Message));
     }
 }