public ActionResult GeneralTab(GynaeForm model) { GynaeBL obj = new GynaeBL(); if (ModelState.IsValid) { var toReturn = obj.Save(model, out outmodel); return(RedirectToAction("PhysicalExaminationTab", "GynaePhyExamination", new { area = "PN", PatientId = model.PatientId })); } ViewBag.PatientId = new SelectList(Dropdowns.PatientDropDown, "Value", "Text"); return(View()); }
public ActionResult Create(GynaeForm model) { var toReturn = obj.Save(model, out outmodel); return (Json(new { mdl = outmodel, pa = toReturn }, JsonRequestBehavior.AllowGet)); }