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(EF_Practice.Vehiculo Vehiculo)
        {
            bool exito = DAGeneral.RegistrarVehiculo(Vehiculo);

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

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