Beispiel #1
0
        public ActionResult PromotionWayDetail(int promotionId)
        {
            ViewBag.PromotionId = promotionId;
            ViewBag.list        = _promotionWayManager.GetPromotionWayPostList(promotionId).OrderBy(p => p.OrderNum).ToList();

            ViewBag.HasApply = _promotionApplyService.IsExsits(promotionId, CurrentUser.UserId);
            return(View());
        }
        public JsonResult GetPromotionWayPostList(int promotionId)
        {
            var list = _promotionWayManager.GetPromotionWayPostList(promotionId);

            return(Json(new
            {
                dataList = list.OrderBy(p => p.OrderNum),
                postIds = list.Select(p => p.PostId).GetString()
            }, JsonRequestBehavior.AllowGet));
        }