public async Task <IActionResult> Delete([FromRoute] DeleteSourceFromRoute route,
                                                 [FromQuery] DeleteSourceFromQuery query,
                                                 [FromHeader] DeleteSourceFromHeader header)
        {
            var request = new DeleteSourceRequest(route, query, header);

            var result = await _apiResult.Produce(request);

            return(result);
        }
Exemple #2
0
 public DeleteSourceRequest(DeleteSourceFromRoute route, DeleteSourceFromQuery query, DeleteSourceFromHeader header)
 {
     _route  = route ?? throw new ArgumentNullException(nameof(route));
     _query  = query ?? throw new ArgumentNullException(nameof(query));
     _header = header ?? throw new ArgumentNullException(nameof(header));
 }