public ActionResult Edit([Bind(Include = "Id,Name,DateStarted,Type")] BeeHive beeHive) { if (ModelState.IsValid) { db.Entry(beeHive).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(beeHive)); }
public ActionResult Edit([Bind(Include = "Id,Name,isAngry,Role,Species,Sound,canSting")] Bee bee) { if (ModelState.IsValid) { db.Entry(bee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bee)); }