public ActionResult Crear() { var nuevaOrden = new Orden(); var clientes = _clientesBL.ObtenerClientesActivos(); var vehiculos = _vehiculosBL.Obtener(); ViewBag.ClienteId = new SelectList(clientes, "Id", "Nombre"); ViewBag.VehiculoId = new SelectList(vehiculos, "Id", "Marca.Descripcion"); return(View(nuevaOrden)); }
// GET: Productos public ActionResult Index() { var vehiculosBL = new VehiculosBL(); var listadevehiculos = vehiculosBL.Obtener(); return(View(listadevehiculos)); }