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")); }
public ActionResult Index() { var Compra = BitacoraRegistroCompras.GetBitacoraRegistroCompra(this.HttpContext); var viewModel = new RegistroCompraViewModel { ElementosRegistroCompras = Compra.GetElementosRegistroCompra(), TotalRegistroCompra = Compra.GetTotalCompra() }; return(View(viewModel)); }