public ActionResult AddNewPerson(PersonInfo tempPerson) { _faceService = new FaceDP(Server.MapPath("~")); _personInfoModel = new PersonInfo(); DataTable dt = _faceService.GetGenderCode(); ViewBag.GenderCode = _webModel.MapCodeData(dt); if (ModelState.IsValid) { TempData["notice"] = _faceService.CreatePerson(tempPerson); return(View("ManagementPage")); } return(View(_personInfoModel)); }