예제 #1
0
        void CargarDetalleFacturas(int id)
        {
            List <InvoiceDetail> detalleFacturas = new List <InvoiceDetail>();

            detalleFacturas = repository.GetAllInvoicesDetailsById(id).Select(x => new InvoiceDetail
            {
                id          = x.id,
                idInvoice   = x.idInvoice,
                productname = x.productname,
                quantity    = x.quantity,
                unitprice   = x.unitprice,
                subtotal    = x.subtotal
            })
                              .ToList();

            gvDetalle.DataSource = detalleFacturas;
            gvDetalle.DataBind();
        }