public ActionResult GetEmployeeInfoMethod() { try { var staffIdStr = Request["staffId"];//员工Id int staffId = -1; if (int.TryParse(staffIdStr, out staffId)) { var list = EmployeeManage.GetEmployeeInfo(staffId); return(Json(list, JsonRequestBehavior.AllowGet)); } else { return(Content("请输入正确的Int数据类型!")); } } catch (Exception ex) { return(Content(ex.Message)); } }