Пример #1
0
        /// <summary>
        /// 添加系统设置
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        private string addGameSetting(HttpContext context)
        {
            Json   jsonResult = new Json();
            string biaoMoney  = context.Request["biaoMoney"];
            string gameMoney  = context.Request["gameMoney"];
            int    result     = ms.addgameSetting(biaoMoney, gameMoney);

            if (result > 0)
            {
                jsonResult.Success = true;
                jsonResult.Msg     = "添加成功";
            }
            else
            {
                jsonResult.Success = false;
                jsonResult.Msg     = "添加失败";
            }
            string strJson = JsonConvert.SerializeObject(jsonResult);

            return(strJson);
        }