How to do this, i'm new to xamarin, i would like xamarin.
my web api server like.
entity
public class Departments
{
public string Id { get; set; }
public string Name { get; set; }
}
and api server return
[
{
"Id": "BLD",
"Name": "Room1 "
},
{
"Id": "xas",
"Name": "Room2"
},
{
"Id": "DTH",
"Name": "Room3"
},
{
"Id": "qas",
"Name": "Room 4"
},
]
how to add this data to spinner, thanks all