Exemplo n.º 1
0
        public async Task <IHttpActionResult> GetCities(decimal north, decimal south, decimal east, decimal west)
        {
            try
            {
                var cities = await _weatherDataService.GetCitiesAsync(north, south, east, west);

                return(Ok(cities));
            }
            catch
            {
                return(InternalServerError(new Exception("Error occurred while fetching cities.")));
            }
        }