public async Task <IActionResult> Create([FromQuery] CreateFlowFromQuery query, [FromBody] CreateFlowFromBody body) { var request = new CreateFlowRequest(query, body); var result = await _apiResult.Produce(request); return(result); }
public CreateFlowRequest(CreateFlowFromQuery query, CreateFlowFromBody body) { _query = query ?? throw new ArgumentNullException(nameof(query)); _body = body ?? throw new ArgumentNullException(nameof(body)); }