public static void AddMenu(dynamic parameters) { bool ret = CmsController.InsertMenu(parameters); bool success = false; string msg = "no"; if (ret) { success = true; msg = "Insert Completed"; } string res = (new BaseWebMethodAJax { success = success, msg = msg }).ObjectToJSON(); AppTools.SendResponse(HttpContext.Current.Response, res); }