Example #1
0
        public ActionResult Editar(int id)
        {
            var orden    = _ordenesBL.ObtenerOrden(id);
            var clientes = _clientesBL.ObtenerClientesActivos();

            ViewBag.ClienteId = new SelectList(clientes, "Id", "Nombre", orden.Clienteid);
            return(View(orden));
        }
Example #2
0
        public ActionResult Editar(int Id)
        {
            var orden         = _ordenesBL.ObtenerOrden(Id);
            var beneficiarios = _beneficiariosBL.ObtenerBeneficiariosActivos();

            ViewBag.BeneficiarioId = new SelectList(beneficiarios, "Id", "Nombre", orden.BeneficiarioId);

            return(View(orden));
        }
        public ActionResult Editar(int id)
        {
            var orden     = _ordenesBL.ObtenerOrden(id);
            var clientes  = _clientesBL.ObtenerClientesActivos();
            var vehiculos = _vehiculosBL.Obtener();


            ViewBag.ClienteId  = new SelectList(clientes, "Id", "Nombre", orden.ClienteId);
            ViewBag.VehiculoId = new SelectList(vehiculos, "Id", "Marca.Descripcion", orden.VehiculoId);

            return(View(orden));
        }
Example #4
0
        // GET: OrdenesDetalle
        public ActionResult Index(int id)
        {
            var orden = _ordenBL.ObtenerOrden(id);

            orden.ListadeOrdenDetalle = _ordenBL.ObtenerOrdenDetalle(id);
            return(View(orden));
        }
        // GET: OrdenesDetalle
        public ActionResult Index(int Id)
        {
            var orden = _ordenBL.ObtenerOrden(Id);

            return(View(orden));
        }
        public ActionResult Detalle(int id)
        {
            var orden = _ordenesBL.ObtenerOrden(id);

            return(View(orden));
        }