public IActionResult GetAPointOfInterestForCity(int cityId, int poiId) { if (!CitiesRepository.CityExists(cityId)) { return(BadRequest()); } var pointOfInterest = CitiesRepository.GetPointOfInterestForCity(cityId, poiId); if (pointOfInterest == null) { return(BadRequest()); } var pointOfInterestDto = ToDto.ToAPoiForACityDto(pointOfInterest); return(new ObjectResult(pointOfInterestDto)); }