public ActionResult CheckDelete(int cedula) { EmpleadoController cont = new EmpleadoController(); cont.DeleteData(cedula); return(RedirectToAction("Index")); }
// GET: Ciudad public ActionResult Index() { EmpleadoController cont = new EmpleadoController(); List <Empleado> list = cont.getAllEmpleados(); return(View(list)); }
public ActionResult Delete(int cedula) { EmpleadoController cont = new EmpleadoController(); return(View(cont.getAllEmpleados().Find(model => model.cedula == cedula))); }