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