private VendorFinancialInfo getAllVendors() { using (WebClient client = new WebClient()) { string rawJSON = client.DownloadString(new Helper.ApiRoutes().AllVendors); //rawJSON = rawJSON.Replace("[", "").Replace("]", ""); VendorFinancialInfo vendors = JsonConvert.DeserializeObject <VendorFinancialInfo>(rawJSON); return(vendors); } }
private void btnLoadData_Click(object sender, EventArgs e) { VendorFinancialInfo vendors = getAllVendors(); MessageBox.Show("Test"); }