public static void Start() { int menuChoice = 0; do { ShowMenu(); menuChoice = CommonIO.GetIntFromUser(1, 5); ApplyChoice(menuChoice); } while (menuChoice != 5); }
public void Execute() { CommonIO.ShowHeader("Delete Order"); DateTime OrderDateToDelete = ConsoleIO.AskForOrderDate(); OrdrLkpResponses AllOrders = new OrdrLkpResponses(); AllOrders = _manager.LoadOrders(OrderDateToDelete); if (AllOrders.Success) { _orders = AllOrders.Orders; int orderNumtoDelete = CommonIO.GetIntFromUser(1, 999, 0, "What order number would you like to delete?"); DeleteOrder(OrderDateToDelete, orderNumtoDelete); } else { CommonIO.MessageToUserInBlue(AllOrders.Message); } }