fix referencing issues ...
fix seeding issues ... fix SubCategory Refresh and Add Support for handle Category Referesh and Referencing ...
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user