/// <summary> /// 更新用户信息 /// </summary> /// <param name="id">用户ID</param> /// <param name="user">用户数据对象</param> /// <returns>JsonResult</returns> public JsonResult UpdateUserInfo(string id, SYS_User user) { const string action = "3BC17B61-327D-4EAA-A0D7-7F825A6C71DB"; var verify = new SessionVerify(); if (!verify.CompareAsID(action, id)) { return(verify.Result); } var reset = Update(user); if (!reset.HasValue) { return(verify.Result.NotFound()); } if (!reset.Value) { return(verify.Result.DataBaseError()); } SessionManage.UpdateSession(user); return(verify.Result); }