Esempio n. 1
0
 private Decimal GetPrice(SaleInfo info)
 {
     if (info == null)
     return 0.01m;
       if (info.ListPrice != null)
     return info.ListPrice.Amount;
       if (info.RetailPrice != null)
     return info.RetailPrice.Amount;
       return 0.01m;
 }
Esempio n. 2
0
 private Decimal GetPrice(SaleInfo info)
 {
     if (info == null)
     {
         return(0.01m);
     }
     if (info.ListPrice != null)
     {
         return(info.ListPrice.Amount);
     }
     if (info.RetailPrice != null)
     {
         return(info.RetailPrice.Amount);
     }
     return(0.01m);
 }