public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } VehiculoETL vehiculo = _vehiculoBLL.ConsultarVehiculo((int)id); if (vehiculo == null) { return(NotFound()); } return(View(vehiculo)); }
public IActionResult Create2(int?id) { VehiculoETL vehiculo = _vehiculoBLL.ConsultarVehiculo((int)id); ViewData["Vehiculo"] = vehiculo; ViewData["IdServicio"] = new SelectList(_servicioBLL.ObtenerListaDeServicios((int)id), "IdServicio", "Descripcion"); return(View()); }