public ActionResult Edit([Bind(Include = "Id,Name,Address,ChiefComplains,Age,Sex,Mrno")] tbl_Patient tbl_Patient)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_Patient).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_Patient));
 }
Пример #2
0
 public ActionResult Edit([Bind(Include = "Id,Name")] tbl_MajorArea tbl_MajorArea)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_MajorArea).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbl_MajorArea));
 }
Пример #3
0
 public ActionResult Edit([Bind(Include = "Id,MajorAreaId,Rx,PatientId,NextVisit,EntryDate")] tbl_Rx tbl_Rx)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_Rx).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MajorAreaId = new SelectList(db.tbl_MajorArea, "Id", "Name", tbl_Rx.MajorAreaId);
     ViewBag.PatientId   = new SelectList(db.tbl_Patient, "Id", "Name", tbl_Rx.PatientId);
     return(View(tbl_Rx));
 }