I am working with API to get list of country.
Following link display JSON
of countries :
http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/country?format=json
Using following code for access JSON object.
System.Net.WebClient wc = new System.Net.WebClient();
var response = wc.DownloadString("http://ws.postcoder.com/pcw/PCW45-12345-12345-1234X/country?format=json");
But I have some issues for accessing it. I want to use this response
variable to populate DropDown
form these countries.
Note: I am calling the API to get the list of countries.And i want to return SelectList here by using Api's response. After that i want to use this SelectList to fill DropDown on View