Beispiel #1
0
        protected override async Task ValidateDeleteWithDescendantsAsync(List <int> ids)
        {
            // SQL validation
            int remainingErrorCount = ModelState.MaxAllowedErrors - ModelState.ErrorCount;
            var sqlErrors           = await _repo.AccountClassifications_Validate__DeleteWithDescendants(ids, top : remainingErrorCount);

            // Add errors to model state
            ModelState.AddLocalizedErrors(sqlErrors, _localizer);
        }