public ActionResult SelectPerson(int id) { int searchId; if (id != 0) { searchId = id; updateSearchFor(searchId); } else { searchId = Convert.ToInt32(System.Web.HttpContext.Current.Session["AppEntityID"]); } //Update the searched for table //Load all work history information into ViewData object to use on partial page PersonWorkProfileGet myWorkProfile = new PersonWorkProfileGet(); ViewData["WorkProfile"] = myWorkProfile.GetPersonInfo(searchId); //Load basic serached for Person info and return it to the view for //use in the PersonBasic partial view PersonBasicGet myPersonBasic = new PersonBasicGet(); return(View(myPersonBasic.GetPersonBasicInfo(searchId))); }
public ActionResult SelectedOfficer(int id) { GetAuditStats gas = new GetAuditStats(); @ViewData["OfficerAudits"] = gas.OfficerAuditStats(id).OrderByDescending(d => d.IECAID); PersonBasicGet pg = new PersonBasicGet(); return(View(pg.GetPersonPasicInfo(id))); }
public ActionResult GetPersonBasic(int id) { PersonBasicGet myPersonBasic = new PersonBasicGet(); return(PartialView("_PersonBasic", myPersonBasic.GetPersonBasicInfo(id))); }