public static void Trash(object parameters) { bool ret = CampaignController.Updatestatus(parameters, 5); 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); }