public async Task RemoveBundleAsync(int id) { VerifyManagementPermission(); if (await _triggerRepository.BundleIsInUseAsync(id)) { throw new GraException("Bundle is currently being awarded by a trigger"); } var bundle = await _avatarBundleRepository.GetByIdAsync(id, false); bundle.IsDeleted = true; await _avatarBundleRepository.UpdateSaveAsync(GetClaimId(ClaimType.UserId), bundle); }