Esempio n. 1
0
 protected override async Task DeleteWithDescendantsAsync(List <int> ids)
 {
     try
     {
         await _repo.AccountClassifications__DeleteWithDescendants(ids);
     }
     catch (ForeignKeyViolationException)
     {
         throw new BadRequestException(_localizer["Error_CannotDelete0AlreadyInUse", _localizer["AccountClassification"]]);
     }
 }