protected override async Task ValidateDeleteWithDescendantsAsync(List <int> ids) { // SQL validation int remainingErrorCount = ModelState.MaxAllowedErrors - ModelState.ErrorCount; var sqlErrors = await _repo.AccountTypes_Validate__DeleteWithDescendants(ids, top : remainingErrorCount); // Add errors to model state ModelState.AddLocalizedErrors(sqlErrors, _localizer); }