Exemple #1
0
        public async Task <Coupon> GetByCodeAsync(string couponCode)
        {
            // TODO: Remove this demonstration wait.
            await Task.Delay(3000);

            ICouponDTO dto = await _contextBLL.DAL.Coupons.GetCouponByCodeAsync(couponCode);

            return(new Coupon(dto));
        }
Exemple #2
0
        }                    // hide the constructor

        public Coupon(ICouponDTO dto)
        {
            _dto = dto;
        }