public async Task <HttpResponseMessage> AddOrUpdateFavoritePlace([FromBody] FavoritePlace value)
        {
            string token = GetHeader("token");

            if (token == null || (token != null && !TokenManager.ValidateToken(token)))
            {
                return(Request.CreateResponse(HttpStatusCode.Unauthorized));
            }

            User loggedUser = usersService.GetLoggedUser(token);

            long returnedId = usersService.AddOrUpdateFavoritePlace(loggedUser, value);

            if (returnedId == -2)
            {
                return(Request.CreateResponse(HttpStatusCode.BadRequest));
            }
            return(Request.CreateResponse(HttpStatusCode.OK, returnedId));
        }