Beispiel #1
0
        public async Task <IActionResult> Index()
        {
            var user = await _userManager.GetUserAsync(User);

            if (!user.PlayerFollows.ToList().Any() && !user.ClanFollows.ToList().Any())
            {
                return(Ok(new { isFollowingAnyone = false }));
            }

            var playerFollows = _followService.GetPlayerFollowsByUser(user);
            var clanFollows   = _followService.GetClanFollowsByUser(user);

            return(Ok(new { playerFollows, clanFollows }));
        }