Ejemplo n.º 1
0
        public async Task <IActionResult> Delete([FromRoute] DeleteIconFromRoute route,
                                                 [FromQuery] DeleteIconFromQuery query,
                                                 [FromHeader] DeleteIconFromHeader header)
        {
            var request = new DeleteIconRequest(route, query, header);

            var result = await _apiResult.Produce(request);

            return(result);
        }
Ejemplo n.º 2
0
 public DeleteIconRequest(DeleteIconFromRoute route, DeleteIconFromQuery query, DeleteIconFromHeader header)
 {
     _route  = route ?? throw new ArgumentNullException(nameof(route));
     _query  = query ?? throw new ArgumentNullException(nameof(query));
     _header = header ?? throw new ArgumentNullException(nameof(header));
 }