Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            DroppedBass droppedbass = db.DroppedBasses.Find(id);

            db.DroppedBasses.Remove(droppedbass);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
        //
        // GET: /Blog/Delete/5

        public ActionResult Delete(int id = 0)
        {
            DroppedBass droppedbass = db.DroppedBasses.Find(id);

            if (droppedbass == null)
            {
                return(HttpNotFound());
            }
            return(View(droppedbass));
        }
Beispiel #3
0
 public ActionResult Edit(DroppedBass droppedbass)
 {
     if (ModelState.IsValid)
     {
         db.Entry(droppedbass).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(droppedbass));
 }
Beispiel #4
0
        public ActionResult Create(DroppedBass droppedbass)
        {
            if (ModelState.IsValid)
            {
                db.DroppedBasses.Add(droppedbass);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(droppedbass));
        }