public async Task <IActionResult> Delete([FromRoute] DeleteOperationFromRoute route, [FromQuery] DeleteOperationFromQuery query, [FromHeader] DeleteOperationFromHeader header) { var request = new DeleteOperationRequest(route, query, header); var result = await _apiResult.Produce(request); return(result); }
public DeleteOperationRequest(DeleteOperationFromRoute route, DeleteOperationFromQuery query, DeleteOperationFromHeader header) { _route = route ?? throw new ArgumentNullException(nameof(route)); _query = query ?? throw new ArgumentNullException(nameof(query)); _header = header ?? throw new ArgumentNullException(nameof(header)); }