Beispiel #1
0
        /// <summary>
        /// 首页跳转
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            ShopWdgjSetting shopWdgjInfoById = this._iShopService.GetshopWdgjInfoById(this.CurShopId);
            WdgjApiModel    model            = new WdgjApiModel
            {
                Id    = (shopWdgjInfoById != null) ? shopWdgjInfoById.Id : 0L,
                uCode = (shopWdgjInfoById != null) ? shopWdgjInfoById.uCode : "",
                uSign = (shopWdgjInfoById != null) ? shopWdgjInfoById.uSign : ""
            };

            return(base.View(model));
        }
Beispiel #2
0
        public JsonResult Add(WdgjApiModel wdgj)
        {
            IShopService    service = this._iShopService;
            ShopWdgjSetting setting = new ShopWdgjSetting
            {
                Id     = wdgj.Id,
                ShopId = this.CurShopId,
                uCode  = wdgj.uCode,
                uSign  = wdgj.uSign
            };

            if (setting.Id > 0L)
            {
                service.UpdateShopWdgj(setting);
            }
            else
            {
                service.AddShopWdgj(setting);
            }
            return(base.Json(new { success = true }));
        }