public ActionResult DeleteConfirmed(int id) { BottomsSeason bottomsSeason = db.BottomsSeasons.Find(id); db.BottomsSeasons.Remove(bottomsSeason); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "BottomsSeasonID,BottomsSeasonName")] BottomsSeason bottomsSeason) { if (ModelState.IsValid) { db.Entry(bottomsSeason).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bottomsSeason)); }
public ActionResult Create([Bind(Include = "BottomsSeasonID,BottomsSeasonName")] BottomsSeason bottomsSeason) { if (ModelState.IsValid) { db.BottomsSeasons.Add(bottomsSeason); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bottomsSeason)); }
// GET: BottomsSeasons/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } BottomsSeason bottomsSeason = db.BottomsSeasons.Find(id); if (bottomsSeason == null) { return(HttpNotFound()); } return(View(bottomsSeason)); }