public ActionResult Edit([Bind(Include = "ID,Name,Description,DateRecieved,Quantity,Price")] Pet pet) { if (ModelState.IsValid) { db.Entry(pet).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pet)); }
public ActionResult Edit([Bind(Include = "Id,SerialNum,AnimalCategory,AnimalName,BirthDate,Breed,OwnerName,OwnerStreet,OwnerState,OwnerZip,OwnerPhoneNum,PhotoUrl")] Pet pet) { if (ModelState.IsValid) { db.Entry(pet).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pet)); }
public ActionResult Edit([Bind(Include = "aNo,dId,cId,rNo,aDate")] Appointments appointments) { if (ModelState.IsValid) { db.Entry(appointments).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(appointments)); }
public ActionResult Edit([Bind(Include = "dId,dName")] Doctor doctor) { if (ModelState.IsValid) { db.Entry(doctor).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(doctor)); }
public ActionResult Edit([Bind(Include = "rNo")] Room room) { if (ModelState.IsValid) { db.Entry(room).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(room)); }
public ActionResult Edit([Bind(Include = "cId,cName,cAddress")] Customer customer) { if (ModelState.IsValid) { db.Entry(customer).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(customer)); }