예제 #1
0
        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);
        }
예제 #2
0
        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())));
        }
예제 #3
0
        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())));
        }