Exemple #1
0
        public string DetermineTypeOfSale()
        {
            string result;

            if ((ProductInformation.GetTwoForOne() == true) & (Quantity >= 2))
            {
                result = "2FOR1";
            }
            else if (ProductInformation.GetSalePrice() == 0)
            {
                result = "REG";
            }
            else
            {
                result = "SALE";
            }
            return(result);
        }