public ActionResult DeleteConfirmed(string id)
        {
            tbTiposDocumento tbTiposDocumento = db.tbTiposDocumento.Find(id);

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

            return(View(tbTiposDocumento));
        }
        // GET: /tbTiposDocumentoes/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbTiposDocumento tbTiposDocumento = db.tbTiposDocumento.Find(id);

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