diff --git a/src/Gemstone.Web/APIController/ReadOnlyModelController.cs b/src/Gemstone.Web/APIController/ReadOnlyModelController.cs index f681826e..b2d9e113 100644 --- a/src/Gemstone.Web/APIController/ReadOnlyModelController.cs +++ b/src/Gemstone.Web/APIController/ReadOnlyModelController.cs @@ -337,12 +337,12 @@ public virtual async Task Search([FromBody] SearchPost postDat if (ParentKey != string.Empty && parentID is not null) { - filters.Append(new RecordFilter() + filters = filters.Append(new RecordFilter() { FieldName = ParentKey, Operator = "=", SearchParameter = parentID - }); + }).ToArray(); } IAsyncEnumerable result = tableOperations.QueryRecordsAsync(HttpContext.User, postData.OrderBy, postData.Ascending, page, PageSize, cancellationToken, filters); @@ -367,12 +367,12 @@ public virtual async Task GetPageInfo([FromBody] SearchPost po if (ParentKey != string.Empty && parentID is not null) { - filters.Append(new RecordFilter() + filters = filters.Append(new RecordFilter() { FieldName = ParentKey, Operator = "=", SearchParameter = parentID - }); + }).ToArray(); } int recordCount = await tableOperations.QueryRecordCountAsync(HttpContext.User, cancellationToken, filters).ConfigureAwait(false); @@ -401,12 +401,12 @@ public virtual async Task GetPageInfo(string? parentID, Cancellat if (ParentKey != string.Empty && parentID is not null) { - filters.Append(new RecordFilter() + filters = filters.Append(new RecordFilter() { FieldName = ParentKey, Operator = "=", SearchParameter = parentID - }); + }).ToArray(); } int recordCount = await tableOperations.QueryRecordCountAsync(HttpContext.User, cancellationToken, filters).ConfigureAwait(false);