public Task <string> ProcessCommand(CancelOrderFlowContext context, IFlowCommand command) { return(command switch { SubmitCancelOrderCommand submitCommand => DoProcessing(context, submitCommand), _ => throw new UnsupportedCommandException(), });
public Task <IActionResult> SubmitOrderCancelation(string flowState, SubmitCancelOrderCommand command) { return(ProcessCommand(flowState, command)); }