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)); }
} // hide the constructor public Coupon(ICouponDTO dto) { _dto = dto; }