Exemplo n.º 1
0
        public async Task <ActionResult> Details(int id)
        {
            ChampionsEntity champions = new ChampionsEntity();

            try
            {
                AlreadyLoggedIn();
                champions = await _services.GetChampion(id);

                if (champions.Error)
                {
                    return(RedirectToAction("ErrorPage"));
                }
            }
            catch (Exception)
            {
                return(RedirectToAction("ErrorPage"));
            }
            return(View(champions));
        }