public BaseResponse GetFollowedPlaces(string username)
        {
            PublicUserProfileDomain user = ProfileService.GetPublicUserByUsername(username);

            if (user == null)
            {
                return(Error("unable to find user " + username, HttpStatusCode.NotFound));
            }

            List <PersonalizedFollowingPlaceDomain> reviews = PersonalizedService.GetFollowingPlaces(user.userId);

            return(Items(reviews));
        }
        public BaseResponse GetFavoritePlaces(string username, int favoriteType)
        {
            PublicUserProfileDomain user = ProfileService.GetPublicUserByUsername(username);

            if (user == null)
            {
                return(Error("unable to find user " + username, HttpStatusCode.NotFound));
            }

            List <PersonalizedFavoritePlaceDomain> places = PersonalizedService.GetFavoritePlaces(user.userId, favoriteType);

            return(Items(places));
        }
        public HttpResponseMessage getNetworkPlaces([FromUri] PersonalizedFriendRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            string userId = UserService.GetCurrentUserId();

            List <PersonalizedFriendsDomain> FriendsOfFriends = PersonalizedService.GetFriendsOfFriendsReviews(model, userId);

            ItemsResponse <PersonalizedFriendsDomain> newitemResponse = new ItemsResponse <PersonalizedFriendsDomain>();

            newitemResponse.Items = FriendsOfFriends;

            return(Request.CreateResponse(HttpStatusCode.OK, newitemResponse.Items));
        }
        public BaseResponse GetReviewedPlacesCurrentUser()
        {
            List <PersonalizedRatingDomain> reviews = PersonalizedService.GetPersonalReviews(UserService.GetCurrentUserId());

            return(Items(reviews));
        }
        public BaseResponse GetFollowedPlacesCurrentUser()
        {
            List <PersonalizedFollowingPlaceDomain> reviews = PersonalizedService.GetFollowingPlaces(UserService.GetCurrentUserId());

            return(Items(reviews));
        }
        public BaseResponse GetReviewedPlacesCurrentUser(int favoriteType)
        {
            List <PersonalizedFavoritePlaceDomain> places = PersonalizedService.GetFavoritePlaces(UserService.GetCurrentUserId(), favoriteType);

            return(Items(places));
        }