Пример #1
0
 private SaleTransaction GetTransactionWithProduct(BaseProduct product)
 {
     return(Transactions.First(x => x.Product == product));
 }
Пример #2
0
 private bool IsProductInReceipt(BaseProduct product)
 {
     return(Transactions.Any(x => x.Product == product));
 }