Пример #1
0
        public static void Process(int selected)
        {
            switch (selected)
            {
            case 1:
            {
                Console.WriteLine("Insert news ....");
                Id = Id + 1;
                CreateNews();
                break;
            }

            case 2:
            {
                Console.WriteLine("View list news ....");
                news.Display();
                break;
            }

            case 3:
            {
                Console.WriteLine("Average rate ....");
                news.Calculate();
                news.Display();
                break;
            }

            case 4:
            default:
            {
                Environment.Exit(Environment.ExitCode);
                break;
            }
            }
            InitMenu();
        }