public IActionResult Index()
        {
            var user = authProvider.GetCurrentUser();

            IList <SurveyAggregateViewModel> surveys = parkDAO.GetAllSurveys();

            surveys[0].username = user.Username;
            //maybe here I want to get the user on the session and see all their surveys?

            return(View(surveys));
        }
Beispiel #2
0
        public IActionResult FavoriteParks()
        {
            IList <Survey> surveys = parkDAO.GetAllSurveys();

            return(View(surveys));
        }