public ActionResult GetNewInfoModel() { EmployeeNewInfoService NewInfoService = new EmployeeNewInfoService(); int id = int.Parse(Request["id"]); EmployeeNewInfo newInfo = NewInfoService.GetModel(id); //获取详细信息. return(Json(newInfo, JsonRequestBehavior.AllowGet)); }
/// <summary> /// 详细信息 /// </summary> /// <returns></returns> public ActionResult ShowDetail() { EmployeeNewInfoService NewInfoService = new EmployeeNewInfoService(); int id = int.Parse(Request["id"]); EmployeeNewInfo newInfo = NewInfoService.GetModel(id); ViewData.Model = newInfo; return(View()); }