public static void DeleteTemplate(Model_Template parameters) { bool ret = TemplateController.Delete(parameters); bool success = false; string msg = "no"; if (ret) { success = true; msg = "Delete Completed!!"; } string res = (new BaseWebMethodAJax { success = success, msg = msg }).ObjectToJSON(); AppTools.SendResponse(HttpContext.Current.Response, res); }