예제 #1
0
        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);
        }
예제 #2
0
 public CreateFlowRequest(CreateFlowFromQuery query, CreateFlowFromBody body)
 {
     _query = query ?? throw new ArgumentNullException(nameof(query));
     _body  = body ?? throw new ArgumentNullException(nameof(body));
 }