Esempio n. 1
0
        public Coupon add(Coupon coupon)
        {
            logger.Info("Add categories: ");
            try
            {
                if (coupon == null)
                {
                    throw new ArgumentNullException("coupon");
                }

                context.AddCoupon(coupon);
                logger.Info("End  Add coupons: ");
                return(coupon);
            }
            catch (Exception ex)
            {
                logger.Error("Error in Add coupon " + ex.Message);

                return(null);
            }
        }