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