I am developing an Android app in Xamarin.Android and I want to access a Web API (hosted on local IIS) using RestSharp. When I run the app it doesn't give any result nor give any error.
Here is my code
var client = new RestClient("http://localhost:8066/Student/?id=193");
var request = new RestRequest("", Method.GET);
IRestResponse response = client.Execute(request);
var content = response.Content;
Console.WriteLine("Response: " + content);