public FriendsDto CheckIfFriend(int userId, int targetId) { var checkIfFriends = _friendsRepository.GetFirstInclude(x => x.UserId == userId && x.FriendId == targetId); if (checkIfFriends == null) { var friendEmpty = new FriendsDto(); return(friendEmpty); } return(ModelToDTO.ConvertFriendToDto(checkIfFriends)); }