public ActionResult DeleteConfirmed(int id)
        {
            wildlife_details wildlife_details = db.wildlife_details.Find(id);

            db.wildlife_details.Remove(wildlife_details);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Animal_id,Fact_1,Fact_2,Animal_Sound,Animal_Image_Main,Animal_Image_1,Animal_Image_2,Animal_Image_3,Animal_Image_4,Animal_Image_5")] wildlife_details wildlife_details)
 {
     if (ModelState.IsValid)
     {
         db.Entry(wildlife_details).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(wildlife_details));
 }
        public ActionResult Create([Bind(Include = "Animal_id,Fact_1,Fact_2,Animal_Sound,Animal_Image_Main,Animal_Image_1,Animal_Image_2,Animal_Image_3,Animal_Image_4,Animal_Image_5")] wildlife_details wildlife_details)
        {
            if (ModelState.IsValid)
            {
                db.wildlife_details.Add(wildlife_details);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(wildlife_details));
        }
        // GET: wildlife_details/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            wildlife_details wildlife_details = db.wildlife_details.Find(id);

            if (wildlife_details == null)
            {
                return(HttpNotFound());
            }
            return(View(wildlife_details));
        }