Esempio n. 1
0
        public IActionResult Index(int?pointsEarned)
        {
            CarouselViewModel featured = featuredContentAppService.GetFeaturedNow();

            ViewBag.Carousel = featured;

            SetLanguage();

            Dictionary <GameGenre, UiInfoAttribute> genreDict = Enum.GetValues(typeof(GameGenre)).Cast <GameGenre>().ToUiInfoDictionary(true);

            ViewData["Genres"] = genreDict;

            IEnumerable <SelectListItemVo> games         = gameAppService.GetByUser(CurrentUserId);
            List <SelectListItem>          gamesDropDown = games.ToSelectList();

            ViewBag.UserGames = gamesDropDown;

            SetGamificationMessage(pointsEarned);

            SetEmailConfirmed();

            ViewBag.BuildNumber = Environment.GetEnvironmentVariable("LUDUSTACK_BUILD_NUMBER") ?? "0.0.0";

            return(View());
        }
Esempio n. 2
0
        public IActionResult Index(string handler, int?pointsEarned)
        {
            CarouselViewModel featured = featuredContentAppService.GetFeaturedNow();

            ViewBag.Carousel = featured;

            SetLanguage();

            Dictionary <GameGenre, UiInfoAttribute> genreDict = Enum.GetValues(typeof(GameGenre)).Cast <GameGenre>().ToUiInfoDictionary(true);

            ViewData["Genres"] = genreDict;

            IEnumerable <SelectListItemVo> games         = gameAppService.GetByUser(CurrentUserId);
            List <SelectListItem>          gamesDropDown = games.ToSelectList();

            ViewBag.UserGames = gamesDropDown;

            SetGamificationMessage(pointsEarned);

            return(View());
        }