public void BatchSave(IQueryable <BaseBonusJoin> list, int parentId, BonusType parentType) { _bonusRepository.ClearBonuses(parentId, parentType); if (list == null || !list.Any()) { return; } _bonusRepository.BatchInsertBonuses(list); }