Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. public virtual decimal Total { get
  2.         {
  3.            return SubTotal + TaxTotal;
  4.         } }
  5.         public virtual decimal TaxTotal { get
  6.         {
  7.            return _lineItems.Where(ticketLineItem => ticketLineItem.Item.IsTaxable).Sum(ticketLineItem => (ticketLineItem.Total * Lease.County.TaxRatePercent));
  8.         } }
  9.         public virtual decimal SubTotal
  10.         {
  11.             get
  12.             {
  13.                return _lineItems.Sum(x => x.Total);
  14.             }
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement