Example #1
0
 protected override async Task DeleteExecuteAsync(List <int> ids)
 {
     try
     {
         await _repo.Accounts__Delete(ids);
     }
     catch (ForeignKeyViolationException)
     {
         throw new BadRequestException(_localizer["Error_CannotDelete0AlreadyInUse", _localizer["Account"]]);
     }
 }