예제 #1
0
        /// <summary>
        /// 商铺详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Detail(int id)
        {
            ShopListEntity entity = ShopListBLL.GetById(id);

            if (entity == null)
            {
                return(Content("商铺不存在"));
            }
            return(View(entity));
        }
예제 #2
0
        /// <summary>
        /// 兑换券详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult Coupon(int id)
        {
            ShopListEntity entity = ShopListBLL.GetById(id);

            if (entity == null)
            {
                return(Content("商铺不存在"));
            }
            string code = Commons.GenerateExchangeCode();

            ExchangeCodeBLL.Insert(entity.Id, code);
            ViewBag.Code = code;
            return(View(entity));
        }