예제 #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()
 {
     ViewBag.ListadoVehiculos = DAGeneral.listadoVehiculo();
     return(View());
 }
예제 #3
0
 public ActionResult Editar(string ID)
 {
     EF_Practice.Vehiculo Vehiculo = DAGeneral.listadoVehiculo().Where(x => x.CodVehiculo == ID).FirstOrDefault();
     return(View(Vehiculo));
 }
예제 #4
0
        public ActionResult Listado()

        {
            ViewBag.ListadoModelo = DAGeneral.listadoModelo();
            return(PartialView(DAGeneral.listadoVehiculo()));
        }