Exemplo n.º 1
0
        public void AgregarItemADetalle()
        {
            DetalleFactura.Add(new DetalleFacturaViewModel
            {
                IdProducto     = CabeceraIdProducto,
                NombreProducto = CabeceraNombreProducto,
                PrecioUnitario = CabeceraPrecioProducto,
                Cantidad       = CabeceraCantidadProducto,
            });

            Refrescar();
        }
Exemplo n.º 2
0
 public bool ExisteEnDetalle(int IdProducto)
 {
     return(DetalleFactura.Any(x => x.IdProducto == IdProducto));
 }