public void deleteQuery(int id) { string resp = ""; try { connectModel(); systemConfigurationModel.deleteQuery(id); resp = "{\"type\":\"success\", \"message\":\"Query deleted Successfully.\"}"; } catch (Exception) { resp = "{\"type\":\"danger\", \"message\":\"Can not be deleted the query. Please try again.\"}"; } response(resp); }