Exemple #1
0
 public decimal GetPrice()
 {
     if (GetOnSalePrice() != null)
     {
         return((decimal)GetOnSalePrice());
     }
     else
     {
         if (price == null)
         {
             SqlStoredProcedures sqlSP = new SqlStoredProcedures();
             price = sqlSP.StoreGetProductPrice(GetProductID());
         }
         return((decimal)price);
     }
 }