Esempio n. 1
0
        public CampeonatoViewModel SearchCompetitions(string Code)
        {
            var result = _campeonatoService.SearchCompetitions(Code);

            result.Wait();

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

            return(new CampeonatoViewModel());
        }