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(); }
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(); }