示例#1
0
        public async Task <IActionResult> IndexAsync()
        {
            var userId = _userManager.GetUserId(User);

            IndexFeedViewModel model = new()
            {
                Followers = await _relationService.GetFollowersAsync(userId),
                Following = await _relationService.GetFollowingAsync(userId),
                User      = await _userManager.GetUserAsync(User)
            };

            return(View(model));
        }