public ActionResult Edit([Bind(Include = "Id,Name,Description,PurchasedFrom,Status")] Bull bull) { if (ModelState.IsValid) { db.Entry(bull).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bull)); }
public ActionResult Edit([Bind(Include = "Id,tagNumber,Name,Description,DOB,Sex,Owner,Status,Notes,Dam,Sire")] Cow cow) { if (ModelState.IsValid) { db.Entry(cow).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(cow)); }