Beispiel #1
0
        public JsonResult List(WeiActivityQuery query)
        {
            query.Type = WeiActivityType.ScratchCard;
            var result = WeiActivityApplication.Get(query);

            return(Json(result));
        }
        public JsonResult List(string name, int page = 1, int rows = 20)
        {
            var result = WeiActivityApplication.Get(name.Trim(), WeiActivityType.ScratchCard, page, rows);
            var datas  = result.Models.ToList();
            DataGridModel <WeiActivityModel> weiActivityModel = new DataGridModel <WeiActivityModel>
            {
                rows  = datas,
                total = result.Total
            };

            return(Json(weiActivityModel));
        }
Beispiel #3
0
        public JsonResult GetRouletteList(string name, int page = 1, int rows = 10)
        {
            var query = new WeiActivityQuery {
                Name = name,
                Type = WeiActivityType.Roulette,
                IsIntegralActivity = true,
                IsShowAll          = false,
                PageNo             = page,
                PageSize           = rows
            };
            var result = WeiActivityApplication.Get(query);

            return(Json(new { rows = result.Models, total = result.Total }));
        }
Beispiel #4
0
        public JsonResult GetScratchCardList(string name, int page = 1, int rows = 10)
        {
            var query = new WeiActivityQuery
            {
                Name = name,
                Type = WeiActivityType.ScratchCard,
                IsIntegralActivity = true,
                IsShowAll          = false,
                PageNo             = page,
                PageSize           = rows
            };
            var result = WeiActivityApplication.Get(query);

            return(Json(new { rows = result.Models, total = result.Total }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult GetScratchCardList(string name, int page = 1, int rows = 10)
        {
            var result = WeiActivityApplication.Get(name, CommonModel.WeiActivityType.ScratchCard, page, rows, true, false);

            return(Json(new { rows = result.Models, total = result.Total }, JsonRequestBehavior.AllowGet));
        }