Esempio n. 1
0
        /// <summary>
        /// 详情
        /// </summary>
        public ActionResult Detail(int id)
        {
            ActivityFacade facade = new ActivityFacade();
            var            detail = facade.GetDetail(id);

            if (detail == null)
            {
                return(Content("无id=" + id + "的活动详情"));
            }
            ViewBag.Detail = detail;
            if (!string.IsNullOrWhiteSpace(detail.Expressno))
            {
                ViewBag.ExpressDetail = facade.GetExpressInfo(detail.Expressno);
            }
            return(View());
        }