Ejemplo n.º 1
0
        public async Task <List <T> > GetListTAsync <T>(string url) where T : BaseEntity
        {
            try
            {
                var response = await _httpClient.GetAsync(url);

                var result = await JsonReaderHelper.DeserializeObjectFromStreamAsync <List <T> >(response);

                return(result);
            }
            catch (Exception ex)
            {
                //throw new Exception(ex.Message);
                return(null);
            }
        }