public static void Operation() { var newUser = CreateUserMenu.Handle(); DisplayUserMenu.Handle(newUser); Printer.ReadLine(); }
private static void Main(string[] args) { var db = SetupNewApp(); DefaultCandy.SeedCandy(); var exit = false; var userSelected = false; var user = new Users(); while (!exit) { if (!userSelected) { var userMenuInput = DisplayUserMenu.UserMenu(candyUsers); var validUserIndex = DisplayUserMenu.GetValidUser(userMenuInput, candyUsers); if (validUserIndex == -1) { continue; } if (validUserIndex == -2) { break; } user = DisplayUserMenu.GetUser(validUserIndex, candyUsers); userSelected = true; } var userInput = MainMenu(user); exit = TakeActions(db, userInput, user.Id, user); } }