Пример #1
0
        public ActionResult Upcoming()
        {
            var userInfo = User.Identity.GetUserId();
            var hangouts = _hangoutRepository.ListUpcomingHangouts(userInfo);
            
            var listViewModel = new HangoutsListViewModel
            {
                ListOfHangouts = hangouts
            };
            listViewModel.UserGender = _hangoutRepository.GetUserGender(userInfo);

            //Map to view model
            ViewBag.Strikes = _hangoutRepository.GetStrikeCount(userInfo);
            return View(listViewModel);
        }
Пример #2
0
        public ActionResult MyHangouts()
        {
            var userInfo = User.Identity.GetUserId();
            var hangouts = _hangoutRepository.ListMyHangouts(userInfo);
            var listViewModel = new HangoutsListViewModel
            {
                ListOfHangouts = hangouts
            };

            //Test comment
            //test commit 2

            //Map to view model

            ViewBag.Strikes = _hangoutRepository.GetStrikeCount(userInfo);
            return View(listViewModel.ListOfHangouts.AsQueryable());
        }