public ActionResult DeletarConfirmacao(int id)
        {
            Negocio_Documento negocio_Documento = db.Negocio_Documento.Find(id);

            db.Negocio_Documento.Remove(negocio_Documento);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Editar([Bind(Include = "Documento_ID,Documento_Nome")] Negocio_Documento negocio_Documento)
 {
     if (ModelState.IsValid)
     {
         db.Entry(negocio_Documento).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(negocio_Documento));
 }
        public ActionResult NovoDocumento([Bind(Include = "Documento_ID,Documento_Nome")] Negocio_Documento negocio_Documento)
        {
            if (ModelState.IsValid)
            {
                db.Negocio_Documento.Add(negocio_Documento);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(negocio_Documento));
        }
        public ActionResult Editar(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Negocio_Documento negocio_Documento = db.Negocio_Documento.Find(id);

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