public string Get(string?query, string?page) { return(Search.GetPage(_dbContext, new ProcessedInput(query, page), ITEMS_PER_PAGE) .Select(x => ( new FileInfoItem { origFilePath = x?.OriginalFilePath ?? "", metadataJson = FileMetadata.GetJson(x, true), guid = Path.GetFileNameWithoutExtension(x?.GuidFilePath ?? "") ?? "" } )) .ToJson()); }