public IHttpActionResult AddFavouritePlace([FromUri] string placeId) { int userId = User.Identity.GetUserId <int>(); if (!service.AddFavouritePlace(userId, placeId)) { return(Conflict()); } string location = Request.RequestUri.ToString(); return(Created(location, new { placeId, userId })); }