public ActionResult AlterStaffItemselfInfoMethod() { //AlterEmployeeInfo(int staffId, string staffName,int personId, string tel, string userName, string passWord, string mailBox, int? processTypeId,List <int> authorityList, ref string errMsg try { var staffIdStr = Request["staffId"]; //员工主键Id var passWordOld = Request["passWordOld"]; //员工登录密码旧 var passWordNew = Request["passWordNew"]; //员工登录密码新 int staffId = -1; if (int.TryParse(staffIdStr, out staffId)) { string errMsg = ""; if (EmployeeManage.AlterItemselfPassword(staffId, passWordOld, passWordNew, ref errMsg)) { return(Content("ok")); } else { return(Content(errMsg)); } } else { return(Content("请输入正确的Int数据类型!")); } } catch (Exception ex) { return(Content(ex.Message)); } }