Hi
I have below data returned by API. I want to display ID & Name in deopdown list
{"status":true,"data":[{"id":"66","name":"Amazon Shipping"},{"id":"37","name":"Amazon Shipping 1 KG"},{"id":"62","name":"Amazon Shipping 10 KG"},{"id":"52","name":"Amazon Shipping 2 KG"},{"id":"159","name":"Amazon Shipping 20 KG"},{"id":"53","name":"Amazon Shipping 5 KG"},
public class Root { public bool status { get; set; } public List<Data> data { get; set; } } public class Data { public string id { get; set; } public string name { get; set; } }
Thanks