Beispiel #1
0
        public MatchesCompleteViewModel ListMatches(string Code)
        {
            var result = _campeonatoService.ListMatches(Code);

            result.Wait();
            if (result.IsCompletedSuccessfully)
            {
                return(_mapper.Map <MatchesCompleteViewModel>(result.Result));
            }

            return(new MatchesCompleteViewModel());
        }