示例#1
0
        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());
        }
示例#2
0
        public ActionResult Edit(GynaeForm 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();
            }
        }
示例#3
0
 public ActionResult Create(GynaeForm model)
 {
     var toReturn = obj.Save(model, out outmodel);
     return (Json(new { mdl = outmodel, pa = toReturn }, JsonRequestBehavior.AllowGet));
 }