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(); } }
public string BookItem(string bookGood) { DataAccessLayer.Shop booking = new DataAccessLayer.Shop(); return(booking.BookItem(bookGood)); }