Exemplo n.º 1
0
        public async Task <IActionResult> Delete([FromRoute] DeleteBusinessUnitFromRoute route,
                                                 [FromQuery] DeleteBusinessUnitFromQuery query,
                                                 [FromHeader] DeleteBusinessUnitFromHeader header)
        {
            var request = new DeleteBusinessUnitRequest(route, query, header);

            var result = await _apiResult.Produce(request);

            return(result);
        }
 public DeleteBusinessUnitRequest(DeleteBusinessUnitFromRoute route, DeleteBusinessUnitFromQuery query, DeleteBusinessUnitFromHeader header)
 {
     _route  = route ?? throw new ArgumentNullException(nameof(route));
     _query  = query ?? throw new ArgumentNullException(nameof(query));
     _header = header ?? throw new ArgumentNullException(nameof(header));
 }