public override string Execute(string[] command, State state) { StringBuilder sb = new StringBuilder(); sb.AppendLine(); ServiceOrder service = ServiceOrder.GetInstance; sb.AppendLine(service.ToString()); return(sb.ToString()); }
public override string Execute(string[] command, State state) { StringBuilder sb = new StringBuilder(); sb.AppendLine(); ServiceOrder service = ServiceOrder.GetInstance; int orderNo = Int32.Parse(command[1]); service.CompleteOrder(orderNo); sb.AppendLine("Order is complete and needs to be taken to the customer."); return(sb.ToString()); }
public override string Execute(string[] command, State state) { StringBuilder sb = new StringBuilder(); Order o = state.Context.Table.Order; o.Status = "Kitchen"; ServiceOrder service = ServiceOrder.GetInstance; // Push order to the service... service.PushOrder(o); sb.AppendLine(); sb.AppendLine("Your order has been confirmed and is being sent to the kitchen."); return(sb.ToString()); }