Beispiel #1
0
 // GET: Transaccion/Create
 public ActionResult Create()
 {
     ViewBag.UsuarioId         = new SelectList(_usuarioAppService.ObtenerTodo(), "Id", "NombreUsuario");
     ViewBag.TerceroId         = new SelectList(_terceroAppService.ObtenerTodo(), "Id", "Apellido");
     ViewBag.FacturaId         = new SelectList(_facturaAppService.ObtenerTodo(), "Id", "NumeroFactura");
     ViewBag.TipoTransaccionId = new SelectList(_tipoTransaccionAppService.ObtenerTodo(), "Id", "Descripcion");
     ViewBag.FormaPagoId       = new SelectList(_formaPagoAppService.ObtenerTodo(), "Id", "Descripcion");
     return(View());
 }
        // GET: Venta
        public ActionResult Index()
        {
            ViewBag.Clientes  = new SelectList(_terceroAppService.ObtenerTodo(), "Id", "NombreCompleto");
            ViewBag.FormaPago = new SelectList(_formapagoAppService.ObtenerTodo(), "Id", "Descripcion");
            ViewBag.Productos = (List <Item>)Session["cart"];
            ViewBag.Fecha     = DateTime.Now;
            var a = Session["User"];

            return(View());
        }
        // GET: FormaPago
        public ActionResult Index()
        {
            var formapagoViewModel = Mapper.Map <IEnumerable <FormaPago>,
                                                 IEnumerable <FormaPagoViewModel> >(_formaPagoAppService.ObtenerTodo());

            return(View(formapagoViewModel));
        }