Пример #1
0
        public ActionResult ExamDetail(string aid)
        {
            QiangGouModel model = null;
            Guid          activityID;

            if (Guid.TryParse(aid, out activityID))
            {
                model = QiangGouManager.FetchNeedExamQiangGouAndProducts(activityID);
            }
            return(View(model));
        }
Пример #2
0
        public JsonResult GetEditDatasByActivityId(string activityId, bool isDefault, string strStatus)
        {
            QiangGouModel model = new QiangGouModel();

            if (strStatus == "待审核" || strStatus == "已驳回")
            {
                Guid activityID;
                if (Guid.TryParse(activityId, out activityID))
                {
                    model = QiangGouManager.FetchNeedExamQiangGouAndProducts(activityID);
                }
            }
            else
            {
                model = SeckillManager.FetchNeedExamQiangGouAndProducts(new Guid(activityId));
            }

            return(Json(
                       model?.Products ?? new List <QiangGouProductModel>()
                       , JsonRequestBehavior.AllowGet));
        }