public ActionResult DeleteConfirmed(int id) { DroppedBass droppedbass = db.DroppedBasses.Find(id); db.DroppedBasses.Remove(droppedbass); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /Blog/Delete/5 public ActionResult Delete(int id = 0) { DroppedBass droppedbass = db.DroppedBasses.Find(id); if (droppedbass == null) { return(HttpNotFound()); } return(View(droppedbass)); }
public ActionResult Edit(DroppedBass droppedbass) { if (ModelState.IsValid) { db.Entry(droppedbass).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(droppedbass)); }
public ActionResult Create(DroppedBass droppedbass) { if (ModelState.IsValid) { db.DroppedBasses.Add(droppedbass); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(droppedbass)); }