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

            db.AdoptForm.Remove(AdoptForm);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
        public ActionResult FormSubmit(AdoptForm AdoptForm, string petname)
        {
            if (ModelState.IsValid)
            {
                AdoptForm.PetName = petname;
                db.AdoptForm.Add(AdoptForm);
                db.SaveChanges();
                return(RedirectToAction("Catalogue", "Adopt"));
            }

            //ViewBag.BreedID = new SelectList(db.Breed, "BreedID", "Name", pet.BreedID);
            return(View(AdoptForm));
        }
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AdoptForm AdoptForm = db.AdoptForm.Find(id);

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