public ActionResult Patient_Rescipt_Create(Rescipt_info RI) { if(ModelState.IsValid) { HospitalAppEntities2 db = new HospitalAppEntities2(); db.Rescipt_info.Add(RI); db.SaveChanges(); //Rescipt_info = RI; //MIP.resciptInfo = RI; //MIP.DatabasePunching(); return RedirectToAction("OpdView", "Opd"); } return View(); }
public ActionResult Patient_Rescipt_Edit(Rescipt_info RI) { if (ModelState.IsValid) { HospitalAppEntities2 db = new HospitalAppEntities2(); db.Entry(RI).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("OpdView", "Opd"); } return View(); }