Пример #1
0
        public ActionResult GetCouponPopContent(int MerchantSysNo)
        {
            CouponContentInfo Model = new CouponContentInfo();
            //优惠卷
            LoginUser user = UserMgr.ReadUserInfo();
            List <CustomerCouponInfo> CustomerCouponList = new List <CustomerCouponInfo>();

            if (user != null)
            {
                CustomerCouponList = ShoppingFacade.GetCustomerPlatformCouponCode(user.UserSysNo, MerchantSysNo);
            }
            //获取当前有效的优惠券活动
            List <CouponInfo> CouponList = new List <CouponInfo>();

            if (user != null)
            {
                CouponList = ShoppingFacade.GetCouponList(user.UserSysNo, MerchantSysNo);
            }
            if (user != null)
            {
                Model.UserSysNo              = user.UserSysNo;
                Model.MerchantSysNo          = MerchantSysNo;
                Model.customerCouponCodeList = CustomerCouponList;
                Model.couponList             = CouponList;
            }
            PartialViewResult view = PartialView("~/Views/Shared/_CouponPop.cshtml", Model);

            return(view);
        }