コード例 #1
0
        /// <exception cref="ArgumentException"><</exception>

        public Bonus GetBonus(Guid id)
        {
            if (Guid.Empty == id)
            {
                throw new ArgumentException("Argument id is empty.");
            }

            try
            {
                return(_bonusDao.GetBonus(id));
            }
            catch (ArgumentException)
            {
                throw new ArgumentException("Incorrect id");
            }
        }