示例#1
0
        public ActionResult EliminarCompra(int Id)
        {
            var Compra = BitacoraRegistroCompras.GetBitacoraRegistroCompra(this.HttpContext);

            Compra.EliminarDeLaCompra(Id);
            return(View());
        }
        public ActionResult RegistrarCompraProducto(CompraProductoViewModel producto)
        {
            var Compra = BitacoraRegistroCompras.GetBitacoraRegistroCompra(this.HttpContext);

            Compra.AgregarRegistroCompra(producto);
            return(RedirectToAction("Index", "RegistroCompra"));
        }
示例#3
0
        public ActionResult Index()
        {
            var Compra    = BitacoraRegistroCompras.GetBitacoraRegistroCompra(this.HttpContext);
            var viewModel = new RegistroCompraViewModel
            {
                ElementosRegistroCompras = Compra.GetElementosRegistroCompra(),
                TotalRegistroCompra      = Compra.GetTotalCompra()
            };

            return(View(viewModel));
        }