예제 #1
0
        public ActionResult Eliminar(string ID)
        {
            EF_Practice.Vehiculo Vehiculo = DAGeneral.listadoVehiculo().Where(x => x.CodVehiculo == ID).FirstOrDefault();
            bool exito = DAGeneral.EliminarVehiculo(Vehiculo);

            return(RedirectToAction("Index"));
        }
예제 #2
0
        public ActionResult Crear(EF_Practice.Vehiculo Vehiculo)
        {
            bool exito = DAGeneral.RegistrarVehiculo(Vehiculo);

            return(RedirectToAction("Index"));
        }
예제 #3
0
        public ActionResult Editar(EF_Practice.Vehiculo Vehiculo)
        {
            bool exito = DAGeneral.ActualizarVehiculo(Vehiculo);

            return(RedirectToAction("Index"));
        }
예제 #4
0
 public ActionResult Editar(string ID)
 {
     EF_Practice.Vehiculo Vehiculo = DAGeneral.listadoVehiculo().Where(x => x.CodVehiculo == ID).FirstOrDefault();
     return(View(Vehiculo));
 }