Пример #1
0
        static async Task Main(string[] args)
        {
            PetService petService = new PetService(new MongoClient("mongodb://localhost:27017").GetDatabase("petdb"));

            if (await petService.CheckCollection() == 0)
            {
                await InitializeDb(petService);
            }

            ShowPage(petService);

            Console.WriteLine();

            await ShowReport(petService);

            Console.ReadLine();
        }