public async Task <IActionResult> Get([FromRoute] GetLayoutFromRoute route, [FromQuery] GetLayoutFromQuery query) { var request = new GetLayoutRequest(route, query); var result = await _apiResult.Produce(request); return(result); }
public GetLayoutRequest(GetLayoutFromRoute route, GetLayoutFromQuery query) { _route = route ?? throw new ArgumentNullException(nameof(route)); _query = query ?? throw new ArgumentNullException(nameof(query)); }