示例#1
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 }));
        }