public ActionResult PlanTab(int PatientId) { ViewBag.PatientId = new SelectList(Dropdowns.PatientDropDown, "Value", "Text", PatientId); PreNatal_Plan model = new PreNatal_Plan(); return(View(model)); }
public ActionResult PlanTab(PreNatal_Plan model) { PlanBL obj = new PlanBL(); if (ModelState.IsValid) { var toReturn = obj.Save(model, out outmodel); return(RedirectToAction("GeneralTab", "PaedsPhyExamination", new { area = "PN" })); } ViewBag.PatientId = new SelectList(Dropdowns.PatientDropDown, "Value", "Text"); return(View(model)); }
public ActionResult Edit(PreNatal_Plan model) { try { obj.Update(model, out outmodel); if (!outmodel.Error) { // TODO: Add update logic here return(RedirectToAction("Index")); } else { return(View(model)); } } catch (Exception ex) { ex.Message.ToString(); return(View()); } }
public ActionResult Create(PreNatal_Plan model) { var toReturn = obj.Save(model, out outmodel); return(Json(new { mdl = outmodel, pa = toReturn }, JsonRequestBehavior.AllowGet)); }