Esempio n. 1
0
        public ActionResult CheckDelete(int cedula)
        {
            EmpleadoController cont = new EmpleadoController();

            cont.DeleteData(cedula);
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
        // GET: Ciudad

        public ActionResult Index()
        {
            EmpleadoController cont = new EmpleadoController();
            List <Empleado>    list = cont.getAllEmpleados();

            return(View(list));
        }
Esempio n. 3
0
        public ActionResult Delete(int cedula)
        {
            EmpleadoController cont = new EmpleadoController();

            return(View(cont.getAllEmpleados().Find(model => model.cedula == cedula)));
        }