示例#1
0
        public async Task <IActionResult> AddToFavorites(string url)
        {
            _fanService.SetFavPlanetUrl(url);
            _fanService.AddFavoritePlanets();

            var result = await _starWarsFacade.GetAPlanet(url);

            return(View(result));
        }