Beispiel #1
0
        public async Task <PlanetViewModel> GetPlanetByName(string name)
        {
            var result = await _service.GetPlanetByName(name);

            var resultMapped = _mapper.Map <PlanetViewModel>(result);

            if (resultMapped != null)
            {
                return(await GetAppearanceInMovies(resultMapped));
            }
            else
            {
                return(null);
            }
        }