public ActionResult Edit([Bind(Include = "vaccineID,vaccineName,dateReceived,CPT,ICD9Code,NDC,leadTime,lotNumber,numofDoses,salesPrice")] Vaccine vaccine) { if (ModelState.IsValid) { db.Entry(vaccine).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vaccine)); }
public ActionResult Edit([Bind(Include = "ID,Name,Vendor_,Dosage,Date_Added,Date_Expire,Barcode,Price")] Vaccine vaccine) { if (ModelState.IsValid) { db.Entry(vaccine).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vaccine)); }