public ActionResult DeleteConfirmed(int id)
        {
            tblvacante tblvacante = db.tblvacantes.Find(id);

            db.tblvacantes.Remove(tblvacante);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "VacanteId,CentroPracticaId,Cargo,Departamento,Salario,Ubicacion,ResumenCargo,Funciones,Requisitos,AntecedentesAcademicos,Experiencia,Habilidades,FechaPublicacion,FechaCierre")] tblvacante tblvacante)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblvacante).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CentroPracticaId = new SelectList(db.tblcentropracticas, "CentroPracticaId", "Nombre", tblvacante.CentroPracticaId);
     return(View(tblvacante));
 }
        // GET: tblvacantes/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tblvacante tblvacante = db.tblvacantes.Find(id);

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

            if (tblvacante == null)
            {
                return(HttpNotFound());
            }
            ViewBag.CentroPracticaId = new SelectList(db.tblcentropracticas, "CentroPracticaId", "Nombre", tblvacante.CentroPracticaId);
            return(View(tblvacante));
        }