Beispiel #1
0
        public async Task <IActionResult> FollowersAsync()
        {
            // my followers
            int userId = Convert.ToInt32(User.FindFirstValue(ClaimTypes.NameIdentifier));
            IEnumerable <FollowerDto> followers = await _followerService.GetFollowersByUserIdAsync(userId);

            return(View("Followers", new FollowersViewModel(followers)));
        }