public string GetMoreDetails(int id) { DataAccess dataccess = new DataAccess(); CoffeeShop coffeeshop = dataccess.GetCoffeeShopById(id); string name = coffeeshop.DisplayName; if (coffeeshop.IsWiFiHotSpot) { name = name + "Tu jest internet"; } else { name = name + " Tu nie ma internetu"; } if (coffeeshop.SeatingCapacity<10) { name = name + "; Mala kawawiarnia"; } else if (coffeeshop.SeatingCapacity<20) { name = name + "; Srednia kawiarnia"; } else { name = name + "; Duza kawiarnia"; } if (coffeeshop.SeatingCapacity>20 && coffeeshop.AcceptsCoffeeCards) { name = name + " Kawiarnia dla WebMuses"; } return name; }
public string GetCoffeShopName(int numer) { DataAccess dataccess = new DataAccess(); CoffeeShop coffeeshop = dataccess.GetCoffeeShopById(numer); string name = coffeeshop.DisplayName; return name; }