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")); }
public ActionResult Crear() { ViewBag.ListadoVehiculos = DAGeneral.listadoVehiculo(); return(View()); }
public ActionResult Editar(string ID) { EF_Practice.Vehiculo Vehiculo = DAGeneral.listadoVehiculo().Where(x => x.CodVehiculo == ID).FirstOrDefault(); return(View(Vehiculo)); }
public ActionResult Listado() { ViewBag.ListadoModelo = DAGeneral.listadoModelo(); return(PartialView(DAGeneral.listadoVehiculo())); }