Example #1
0
        static void Main(string[] args)
        {
            Task.Run(async() =>
            {
                global.Application_Start(out accountService, out documentService, out userService, out loanService);

                var exit = false;
                do
                {
                    var m      = new ChoiceInputMenu();
                    var option = m.choiceMenu();
                    exit       = await MenuAction(option, exit);
                } while (!exit);
            }).Wait();
        }
Example #2
0
        static void Main(string[] args)
        {
            Task.Run(async () =>
            {
                global.Application_Start(out accountService, out documentService, out userService, out loanService);

                var exit = false;
                do
                {
                    var m = new ChoiceInputMenu();
                    var option = m.choiceMenu();
                    exit = await MenuAction(option, exit);

                } while (!exit);

            }).Wait();
        }