Exemplo n.º 1
0
        public ActionResult Index()
        {
            var indexUserModel = new UserViewModel()
            {
                LikedMovies = _userDataProvider.GetUserFavouritesCount(ApplicationUser.Id),
                VotedMovies = _userDataProvider.GetUserMovieVotesCount(ApplicationUser.Id),
                VotedActors = _userDataProvider.GetUserActorVotesCount(ApplicationUser.Id)
            };

            return(View(indexUserModel));
        }