public IHttpActionResult Get(string schema, string resource, [FromUri] UrlQueryParametersRequest urlQueryParametersRequest) { var queryParameter = new QueryParameters(urlQueryParametersRequest); var result = _getDeletedResourceIdsRepository.Execute(schema, resource, queryParameter); return(Json(result)); }
public IActionResult Get(string schema, string resource, [FromQuery] UrlQueryParametersRequest urlQueryParametersRequest) { if (!_isEnabled) { _logger.Debug("ChangeQueries is not enabled."); return(NotFound()); } var queryParameter = new QueryParameters(urlQueryParametersRequest); var result = _getDeletedResourceIdsRepository.Execute(schema, resource, queryParameter); // Explicitly serialize the response to remain backwards compatible with pre .net core return(new ContentResult { Content = JsonConvert.SerializeObject(result), ContentType = MediaTypeNames.Application.Json, StatusCode = StatusCodes.Status200OK }); }