// GET: /view/tokens public static HttpResponse ViewAllTokens(HttpRequest request) { ViewerController controller = new ViewerController(); var response = controller.GetAllTokens(); return(CreateHttpResponse(response)); }
private static void RunShowTokens() { ViewerController viewer = new ViewerController(); var response = viewer.GetAllTokens(); if (response.Code == "1") { Console.WriteLine(JsonConvert.SerializeObject(response.Data)); } else { Console.WriteLine(response.Message); } }