Exemple #1
0
        public string GetShopByName(string StoreName)
        {
            DataAccessLayer.Shop shop = new DataAccessLayer.Shop();

            if (StoreName == "Electronics")
            {
                shop.AddGood(StoreName);
                return(shop.GetGoods(StoreName));
            }
            else if (StoreName == "Apteka")
            {
                shop.AddGood(StoreName);
                return(shop.GetGoods(StoreName));
            }
            else if (StoreName == "Store")
            {
                shop.AddGood(StoreName);
                return(shop.GetGoods(StoreName));
            }
            else
            {
                throw new Exception();
            }
        }
Exemple #2
0
 public string BookItem(string bookGood)
 {
     DataAccessLayer.Shop booking = new DataAccessLayer.Shop();
     return(booking.BookItem(bookGood));
 }