Ejemplo n.º 1
0
        public async Task <IActionResult> Upload([FromQuery] UploadFileFromQuery query,
                                                 [FromForm] UploadFileFromForm body)
        {
            var request = new UploadFileRequest(query, body);
            var result  = await _apiResult.Produce(request);

            return(result);
        }
Ejemplo n.º 2
0
 public UploadFileRequest(UploadFileFromQuery query,
                          UploadFileFromForm body)
 {
     _query = query ?? throw new ArgumentNullException(nameof(query));
     _body  = body ?? throw new ArgumentNullException(nameof(body));
 }