public ActionResult <ResourceModel[]> GetResources(ResourceQuery query) { var filter = new ResourceQueryFilter(query, _resourceTypeTree); var resourceProxies = _resourceModification.GetAllResources <IResource>(r => filter.Match(r as Resource)).ToArray(); var converter = new ResourceQueryConverter(_resourceTypeTree, _serialization, query); var values = resourceProxies.Select(p => _resourceModification.Read(p.Id, r => converter.QueryConversion(r))).ToArray(); return(values); }