private IActionResult CreateResult(QueryResourceResponse resourceResponse)
        {
            if (!resourceResponse.ResponseDataset.Any())
            {
                return(NoContent());
            }

            return(StatusCode((int)HttpStatusCode.OK, resourceResponse.ResponseDataset));
        }
Example #2
0
        private IActionResult CreateResult(QueryResourceResponse resourceResponse)
        {
            Response.TryAddErroneousAttributesHeader(resourceResponse.ErroneousTags);
            if (!resourceResponse.ResponseDataset.Any())
            {
                return(NoContent());
            }

            return(StatusCode((int)HttpStatusCode.OK, resourceResponse.ResponseDataset));
        }