Example #1
0
        static void Main(string[] args)
        {
            MedicineRepository medicineRepository = new MedicineRepository();
            Menu   menu    = new Menu();
            string command = "";

            do
            {
                menu.ShowMainMenu();
                command = Console.ReadLine();

                switch (command)
                {
                case "4":
                    var list = medicineRepository.GetMedicines();
                    foreach (var row in list)
                    {
                        Console.WriteLine(row.Name);
                    }
                    Console.ReadKey();
                    break;
                }
            }while
            (command != "0");
        }