Ejemplo n.º 1
0
        public async Task <IActionResult> FollowingsAsync()
        {
            // who the user follows
            int userId = Convert.ToInt32(User.FindFirstValue(ClaimTypes.NameIdentifier));
            IEnumerable <FollowerDto> followers = await _followerService.GetFollowsByUserIdAsync(userId);

            return(View("Followings", new FollowingsViewModel(followers)));
        }