fix referencing issues ...

fix seeding issues ...
fix SubCategory Refresh and Add Support for handle Category Referesh and Referencing ...
This commit is contained in:
2026-07-24 02:49:46 +03:30
parent a8e073901f
commit a029543b72
6 changed files with 275 additions and 11 deletions
+3 -3
View File
@@ -73,11 +73,11 @@ namespace xCategoryService.Providers
//
// Retrieve Last Index ...
var maxIndex = (await GetReferencingIndexes(
var indexes = await GetReferencingIndexes(
providedForId: providedForId,
cancellationToken: cancellationToken
))
.Max();
);
var maxIndex = indexes.HasChild() ? indexes.Max() : -1;
if (forIndex > maxIndex)
{
XException.NotFound.Throw();