public async Task <IActionResult> Index()
        {
            HomeViewModel model       = new HomeViewModel();
            var           currentUser = await _userManager.FindByNameAsync(User.Identity.Name);

            model.Groups = _groupRepository.GetGroups(currentUser.Id);
            return(View(model));
        }
Esempio n. 2
0
        public async Task <IActionResult> MyGroups()
        {
            var user = await _userManager.GetUserAsync(User);

            HomeViewModel model = new HomeViewModel
            {
                Groups = _doctrinaGroupRepository.GetGroups(user.Id)
            };

            return(View(model));
        }