public async Task <IEnumerable <UserProfile> > GetAllFriendsAsync() { try { var userLogued = await this._identityService.GetUserLoguedAsync(); var friend = await _friendsRepository.GetAllFriendsByIdAsync(userLogued.Id); return(friend); } catch (Exception e) { await _loggerService.LogErrorAsync(e); throw; } }