public IActionResult Details(int id)
        {
            var dungeon = _dungeonsService.ById(id);

            if (dungeon == null)
            {
                return(Redirect(Dungeons_Root_Path));
            }

            var viewModel = new DungeonDetailsViewModel
            {
                Id     = dungeon.Id,
                Name   = dungeon.Name,
                Bosses = dungeon.Bosses.Select(x => new NPCsAllViewModel {
                    Id = x.Id, Name = x.Name
                }).ToList(),
                ItemRewards = dungeon.Rewards.Select(x => new ItemsAllViewModel {
                    Id = x.Id, Name = x.Name
                }).ToList()
            };

            viewModel.AchievementRewardName = _achievementsService.ById(dungeon.AchievementRewardId)?.Name;
            viewModel.AchievementRewardId   = _achievementsService.ById(dungeon.AchievementRewardId)?.Id;

            return(View(viewModel));
        }
        public IActionResult Details(int id)
        {
            var achievement = _achievementsService.ById(id);

            if (achievement == null)
            {
                return(Redirect(Achievements_Root_Path));
            }

            return(View(achievement));
        }