/// <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)); }
/// <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)); }