Пример #1
0
        private static void ListSerie()
        {
            Console.WriteLine("Listar Séries");

            var list = repository.List();


            if (list.Count == 0)
            {
                Console.WriteLine("Nenhuma série cadastrada.");
                return;
            }

            foreach (var serie in list)
            {
                var excluded = serie.returnExclude();
                Console.WriteLine("#ID {0}: - {1} {2}", serie.returnId(), serie.returnTitle(), (excluded? "Excluido": ""));
            }
        }
Пример #2
0
        private static void ListAll()
        {
            Console.WriteLine("Listing all series:");

            var fullList = repository.List();

            if (fullList.Count == 0)
            {
                Console.WriteLine("Sorry! No series found.");
                return;
            }

            foreach (var serie in fullList)
            {
                var excluded = serie.getExcluded();

                Console.WriteLine("#ID {0}: - {1} {2}", serie.getId(), serie.getTitle(), (excluded ? "*Excluded*" : ""));
            }
        }
        private static void ListSeries()
        {
            Console.WriteLine("List series");

            var list = repository.List();

            if (list.Count == 0)
            {
                Console.WriteLine("Anyone registered serie.");
                return;
            }

            foreach (var serie in list)
            {
                var deleted = serie.retornDeleted();

                Console
                .WriteLine("#ID {0}: - {1} {2}",
                           serie.retornId(),
                           serie.retornTitle(),
                           (deleted ? "*Deleted*" : ""));
            }
        }