示例#1
0
        public ActionResult Coupon(string userRank)
        {
            tbl_UserPromotionCodeBLL          bll  = new tbl_UserPromotionCodeBLL();
            List <tbl_UserPromotionCodeModel> list = bll.GetUserPromotionEntityList(userRank.ToUpper());

            return(View(list));
        }
示例#2
0
        /// <summary>
        /// 获取会员优惠券
        /// </summary>
        /// <param name="userRank"></param>
        /// <returns></returns>
        public ActionResult GetUserPromotionCode(string userRank)
        {
            JObject json = new JObject();

            if (string.IsNullOrEmpty(userRank))
            {
                json.Add("status", 0);
                json.Add("Content", "");
            }
            else
            {
                tbl_UserPromotionCodeBLL          bll  = new tbl_UserPromotionCodeBLL();
                List <tbl_UserPromotionCodeModel> list = bll.GetUserPromotionEntityList(userRank.ToUpper());
                json.Add("status", 1);
                json.Add("Content", JsonConvert.SerializeObject(list));
            }
            return(JavaScript(json.ToString()));
        }