Example #1
0
        /// <summary>
        /// Cancel whatever the order is currently in progress and notify slack.
        /// </summary>
        private async Task HandleCancelLastOrderAction(SlashCommand command)
        {
            await foodService.CancelOpenOrder(new FoodUser(context.Caller));

            await SendPublicResponse(command, $"Order canceled by {command.UserName}.");
        }