Posts

Showing posts from November, 2017

How to Call RESTfull API Service

Http Method of API Call  ---------------------------------- - ------------------------------------------------- public class HttpCommonService : IHttpCommonService     {         private HttpClient _client;         private HttpResponseMessage response;         private string result;         public HttpCommonService()         {         }         public async Task<T> GetAsync<T>(string url)         {             var uri = new Uri(string.Format(url));             _client = CreateWebRequest(uri);           ...