static void Main(string[] args) { var uiService = new UIService(); uiService.GetMenu(); while (true) { ConsoleKeyInfo key = Console.ReadKey(); uiService.GetCommand(key.Key); } }