public async Task <List <UserProfileDTO> > GetFriendsByUserId(int userId, int count, int offset, bool random) { var friends = await relationshipManager.GetFriendsByUserId(userId, count, offset, random); var friendsDTO = mapper.Map <List <Friend>, List <UserProfileDTO> >(friends); return(friendsDTO); }