public ActionResult DeleteConfirmed(int id)
        {
            TipoAcervoModel tipoacervomodel = db.TipoAcervoModels.Find(id);

            db.TipoAcervoModels.Remove(tipoacervomodel);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit(TipoAcervoModel tipoacervomodel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tipoacervomodel).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tipoacervomodel));
 }
        //
        // GET: /TipoAcervo/Edit/5

        public ActionResult Edit(int id = 0)
        {
            TipoAcervoModel tipoacervomodel = db.TipoAcervoModels.Find(id);

            if (tipoacervomodel == null)
            {
                return(HttpNotFound());
            }
            return(View(tipoacervomodel));
        }
        public ActionResult Create(TipoAcervoModel tipoacervomodel)
        {
            if (ModelState.IsValid)
            {
                db.TipoAcervoModels.Add(tipoacervomodel);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tipoacervomodel));
        }