Exemplo n.º 1
0
 public Competition GetCompetition(string code)
 {
     try
     {
         var compUrl        = string.Format(competitionUrl, baseUrl, code.ToUpper());
         var competitionDto = httpManager.Get <CompetitionDto>(compUrl).Result;
         return(mapper.Map <Competition>(competitionDto));
     }
     catch (Exception)
     {
         return(null);
     }
 }
Exemplo n.º 2
0
        public async Task <Rss> GetRSSArticles()
        {
            var result = await _httpManager.Get <Rss>("GetRSSArticles?newsChannel=NL&Sticky=True");

            return(result);
        }