private void CheckQuantityAvailableForRevert(IIncomingProduct incoming) { ProductQuantity productQuantity = ProductQuantities .SingleOrDefault(p => p.Id == incoming.ProductId); InsufficientBalance = productQuantity == null || productQuantity.TotalAvailable < incoming.Quantity; }
private void CheckQuantityAvailableFor(IOutgoingProduct outgoing) { ProductQuantity productQuantity = ProductQuantities .SingleOrDefault(p => p.Id == outgoing.ProductId); InsufficientBalance = productQuantity == null || productQuantity.TotalAvailable < outgoing.Quantity; }