Beispiel #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);
     }
 }
        public async Task <Rss> GetRSSArticles()
        {
            var result = await _httpManager.Get <Rss>("GetRSSArticles?newsChannel=NL&Sticky=True");

            return(result);
        }