public ActionResult SaveResident(ResidentItem item) { try { if (ModelState.IsValid) { item = service.SaveResident(item); //if (item.ResidentDestinationType == ResidentDestinationTypes.ResidentList) //{ // //Simply go to Rresident return(RedirectToAction("Index", "Resident")); //} //else //{ // //Go to Issue data enty to continue wisard // return RedirectToAction("Template", "Issue", new { residentID = item.ResidentID, consultationType = item.ConsultationType }); //} } else { return(View("Template", item)); } } catch (Exception ex) { return(this.ErrorHandler(ex)); } }
public ActionResult SaveResident(ResidentItem item) { if (ModelState.IsValid) { item = residentService.SaveResident(item); InitializeIssueViewBugs(); return(RedirectToAction("Issue", new { residentID = item.ResidentID })); } else { InitializeResidentViewBugs(); return(View("Resident", item)); } }