예제 #1
0
 public void AddDependUserAndBonuses(Guid userId, Guid bonusId)
 {
     if (!Users.IsUser(userId))
     {
         throw new ArgumentException("Incorrect argument userId.");
     }
     else if (!Bonus.IsBonus(bonusId))
     {
         throw new ArgumentException("Incorrect argument bonusId.");
     }
     else
     {
         _objectDao.AddDependUserAndBonuses(userId, bonusId);
     }
 }