/// <summary> /// The details of a specific physiology record /// </summary> /// <param name="id">The identifier of a specific physiology record</param> /// <param name="page">The page name/source</param> /// <returns>The details view</returns> // GET: Physiologies/Details/5 public ActionResult Details(int id, string page) { PhysiologyServices phyService = new PhysiologyServices(); PhysiologyDto model = phyService.FindPhysiologyRecord(id); model.Page = page; return(View(model)); }
/// <summary> /// Renders the delete view /// </summary> /// <param name="id">The id of the physiology record to display</param> /// <param name="page">The page name/source</param> /// <returns>The delete view</returns> // GET: Physiologies/Delete/5 public ActionResult Delete(int id, string page) { PhysiologyServices service = new PhysiologyServices(); PhysiologyDto phyModel = service.FindPhysiologyRecord(id); if (phyModel == null) { return(HttpNotFound()); } phyModel.Page = page; return(View(phyModel)); }