I wrote some code in webapi ValueConroller. When I try to execute it I'm getting JSON data which is by default saving to text file (IE 8.0), XML output when tried with Mozilla Firefox .
I am not sure how to display my List<country> which will be having list of countries and i am writing this method in value controller like
public IEnumarable<countrylist> getcounrty()
{
obj.method1().tolist(); // method1 will return list<country> where country is a class in my BLL
}
I want the method output to be bonded with Dropdownlist . Becoz there is no VIEW is webapi I am confused how to do it
Any ideas are appreciated.
EDIT : konckout.js is a alternative ? my colleagues ad-viced me so any best alternative mates