예제 #1
0
 public IActionResult ModifyUser(User user)
 {
     try
     {
         var result = _userRepository.ModifyUser(user);
         return(ToJson(result ? HttpResult.Success : HttpResult.Fail, message: result ? "修改成功" : "修改失败"));
     }
     catch (Exception exc)
     {
         return(ToJson(HttpResult.Exception, message: exc.Message));
     }
 }