Esempio n. 1
0
    /// <summary>
    /// Increments a productsReview HitCounterField.
    /// </summary>
    /// <param name="objProduct"></param>
    /// <returns></returns>
    public bool IncrementDiscountCounter(int _ProfileID, int _CouponID)
    {
        int _ActionResult = -1;

        if (!this.IsAlreadyUpdated(_ProfileID, _CouponID))
        {
            try
            {
                using (BC_DiscountZone bc = new BC_DiscountZone())
                {
                    _ActionResult = bc.IncrementDiscountCounter(_ProfileID, _CouponID);
                    if (_ActionResult > 0)
                    {
                        this.KeepTrackOfHitCounter(_ProfileID, _CouponID);
                    }
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }
        return(_ActionResult > 0 ? true : false);
    }