public IActionResult GetPointOfInterest(int cityId, int id) { if (!_repository.CityExists(cityId)) { return(NotFound()); } var pointOfInterest = _repository.GetPointOfInterestForCity(cityId, id); if (pointOfInterest == null) { return(NotFound()); } var pointOfInterestResult = Mapper.Map <PointOfInterestDTO>(pointOfInterest); return(Ok(pointOfInterestResult)); }