Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            BottomsSeason bottomsSeason = db.BottomsSeasons.Find(id);

            db.BottomsSeasons.Remove(bottomsSeason);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 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));
 }
Example #3
0
        public ActionResult Create([Bind(Include = "BottomsSeasonID,BottomsSeasonName")] BottomsSeason bottomsSeason)
        {
            if (ModelState.IsValid)
            {
                db.BottomsSeasons.Add(bottomsSeason);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(bottomsSeason));
        }
Example #4
0
        // 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));
        }