public ActionResult <IEnumerable <string> > PhotosByGastronomyID(string gastronomyID) { Gastronomy gastronomy = null; try { gastronomy = _mongoDBConnector.GetGastronomyById(gastronomyID); } catch { } if (gastronomy == null) { return(NotFound("GastronomyID not found")); } var openDataGastronomy = _openDataHupConnector.GetGastronomyByID(gastronomy.ForeignID); JObject deserialized = (JObject)JsonConvert.DeserializeObject(openDataGastronomy); // Get the position form the OpenData var imageList = _lichtBildConnector.GetPhotographiesByPosition(new Position() { Latitude = Convert.ToDouble(deserialized["Latitude"]), Longitude = Convert.ToDouble(deserialized["Longitude"]) }); return(new JsonResult(imageList)); }