public async Task <ActionResult <Destination[]> > GetDestinationsByCity(string city) { try { var result = await _destinationRepository.GetDestinationByCity(city); if (result == null) { return(NotFound($"Could not find any destination with city name {city}")); } return(Ok(result)); } catch (Exception e) { return(this.StatusCode(StatusCodes.Status500InternalServerError, $"Database Failure: {e.Message}")); } }