public ActionResult PrizeSports(string id)
        {
            string userWeiXinID = HotelCloud.Common.HCRequest.GetString("key");
            string weixinid     = HotelCloud.Common.HCRequest.GetString("weixinID");

            string uxid = string.Empty;

            if (!userWeiXinID.Equals(""))
            {
                weixinid = userWeiXinID.Split('@')[0];
                hotel3g.Models.Cookies.SetCookies("userWeixinNO", userWeiXinID.Split('@')[1], 30, userWeiXinID.Split('@')[0]);
                uxid = userWeiXinID.Split('@')[1];
            }
            ViewData["weixinID"]     = weixinid;
            ViewData["hId"]          = id;
            ViewData["userWeiXinID"] = uxid;// hotel3g.Models.Cookies.GetCookies("userWeixinNO");
            int count    = 0;
            int pagesize = 10;

            ViewData["data"]    = PrizeMsgWrapper.Assembly(WeiXin.Models.DAL.Activity.FetchActivity(weixinid, pagesize, 1, out count));
            ViewData["count"]   = count;
            ViewData["sumpage"] = count % pagesize == 0 ? count / pagesize : count / pagesize + 1;

            List <hotel3g.Repository.RandomLuckyDrawClass> HotelLuckyDraws = hotel3g.Repository.RandomLuckyDrawHelper.GetRandomLuckyDrawList(0, weixinid);

            ViewData["HotelLuckyDraws"] = HotelLuckyDraws;

            return(View());
        }
        public ActionResult FetchPrizeSports()
        {
            string weixinId = HotelCloud.Common.HCRequest.GetString("wx");
            int    page     = HotelCloud.Common.HCRequest.getInt("page", 1);

            if (page <= 0)
            {
                page = 1;
            }
            int pagesize = HotelCloud.Common.HCRequest.getInt("pagesize", 10);
            int sumpage  = 0;
            int count    = 0;
            IList <PrizeMsgWrapper> mlist = PrizeMsgWrapper.Assembly(WeiXin.Models.DAL.Activity.FetchActivity(weixinId, pagesize, 1, out count));

            sumpage = count % pagesize == 0 ? count / pagesize : count / pagesize + 1;
            return(Json(new
            {
                data = mlist,
                sumpage = sumpage,
                count = count,
                page = page
            }, JsonRequestBehavior.AllowGet));
        }