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