/// <summary> /// 得到一条运维信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult GetOneOperationInfo(int id) { ResultData <UserResultDTO> result = new ResultData <UserResultDTO>(); try { result = UserAuthorityProvider.GetOneUser(id); } catch (Exception ex) { result.SubmitResult = false; result.Message = ex.Message; } return(Json(result, JsonRequestBehavior.AllowGet)); }
/// <summary> /// 得到一条用户信息 /// </summary> /// <param name="dto"></param> /// <returns></returns> public ActionResult GetOneUser(int id) { ResultData <UserResultDTO> result = new ResultData <UserResultDTO>(); try { if (id == 1) { throw new Exception("系统初始化用户不予修改"); } result = UserAuthorityProvider.GetOneUser(id); } catch (Exception ex) { result.SubmitResult = false; result.Message = ex.Message; } return(Json(result, JsonRequestBehavior.AllowGet)); }