public ActionResult DeleteConfirmed(long id)
        {
            TiposDeVacina tiposDeVacina = db.TiposDeVacina.Find(id);

            db.TiposDeVacina.Remove(tiposDeVacina);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Descricao")] TiposDeVacina tiposDeVacina)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tiposDeVacina).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tiposDeVacina));
 }
        public ActionResult Create([Bind(Include = "Id,Descricao")] TiposDeVacina tiposDeVacina)
        {
            if (ModelState.IsValid)
            {
                db.TiposDeVacina.Add(tiposDeVacina);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tiposDeVacina));
        }
        // GET: TiposDeVacina/Delete/5
        public ActionResult Delete(long?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TiposDeVacina tiposDeVacina = db.TiposDeVacina.Find(id);

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