void updateInternetShop() { IInternetShopRepository InternetShopRepo = factory.GetInternetShopRepository(); menu.CurrentInternetShop(); showInternetShop(new List <InternetShop>(InternetShopRepo.Get(new InternetShopFilter()))); InternetShopFilter filter = new InternetShopFilter(); filter.SetConditions(); menu.EmptyRows(1); InternetShopRepo.Update(filter); menu.InternetShopAfter(); showInternetShop(new List <InternetShop>(InternetShopRepo.Get(new InternetShopFilter()))); }
void deleteFromInternetShop() { IInternetShopRepository InternetShopRepo = factory.GetInternetShopRepository(); menu.CurrentInternetShop(); showInternetShop(new List <InternetShop>(InternetShopRepo.Get(new InternetShopFilter()))); menu.InputInternetShopId(); InternetShopFilter filter = new InternetShopFilter(); filter.Id = Convert.ToInt32(Console.ReadLine()); menu.EmptyRows(1); InternetShopRepo.Delete(filter); menu.InternetShopAfter(); showInternetShop(new List <InternetShop>(InternetShopRepo.Get(new InternetShopFilter()))); }
void getInternetShop() { IInternetShopRepository InternetShopRepo = factory.GetInternetShopRepository(); InternetShopFilter filter = new InternetShopFilter(); menu.EmptyRows(1); List <InternetShop> chosenCollections = new List <InternetShop>(InternetShopRepo.Get(filter)); // console output showInternetShop(chosenCollections); }