Пример #1
0
        //Меню для таблиці Good
        static void GoodMenu(int Id, int idUser)
        {
            GoodService goodService = new GoodService();

            while (true)
            {
                goodService.Get(Id);

                Console.WriteLine("Please enter good's number and you will see responses anout it or press '0'" +
                                  " if you want to return category");
                int num    = CheckNumber();
                int goodId = goodService.GetGood(num);

                if (goodId == 0)
                {
                    break;
                }
                else
                {
                    ResponseMenu(goodId, idUser, goodId);
                }
            }
        }