Exemplo n.º 1
0
        public async Task <IList <Product> > GetProducts()
        {
            var products = await $"{_configDetails.GetResourceBaseUrl()}".AppendPathSegment("products")
                           .SetQueryParam("token", _configDetails.GetUserDetails().Token)
                           .AllowAnyHttpStatus().GetAsync().DeserializeObject <IList <Product> >();

            return(products);
        }
 public ActionResult <User> Get()
 {
     return(_configDetails.GetUserDetails());
 }