Example #1
0
        public async Task <JsonResult> UpdateActivityPrize(ActivityPrize activityPrize)
        {
            GuessGameManager manager     = new GuessGameManager();
            bool             savesuccess = manager.UpdateActivityPrize(activityPrize);

            if (savesuccess)
            {
                using (var client = new ConfigLogClient())
                {
                    var response = client.InsertDefaultLogQueue("CommonConfigLog", JsonConvert.SerializeObject(new
                    {
                        ObjectId    = activityPrize.PKID,
                        ObjectType  = "WorldCupConfigPrize",
                        BeforeValue = "",
                        AfterValue  = "",
                        Remark      = "修改兑换物信息",
                        Creator     = User.Identity.Name,
                    }));
                }
            }
            return(Json(savesuccess ? "" : "操作失败", JsonRequestBehavior.AllowGet));
        }