Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public CreateLayoutRequest(CreateLayoutFromQuery query, CreateLayoutFromBody body)
 {
     _query = query ?? throw new ArgumentNullException(nameof(query));
     _body  = body ?? throw new ArgumentNullException(nameof(body));
 }