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