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

            db.Vet_Appointment.Remove(vet_Appointment);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Vet_Appointment_ID,Vet_ID")] Vet_Appointment vet_Appointment)
 {
     if (ModelState.IsValid)
     {
         db.Entry(vet_Appointment).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Vet_ID = new SelectList(db.Veterinarians, "Vet_ID", "Vet_Name", vet_Appointment.Vet_ID);
     return(View(vet_Appointment));
 }
        // GET: Vet_Appointment/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Vet_Appointment vet_Appointment = db.Vet_Appointment.Find(id);

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

            if (vet_Appointment == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Vet_ID = new SelectList(db.Veterinarians, "Vet_ID", "Vet_Name", vet_Appointment.Vet_ID);
            return(View(vet_Appointment));
        }