Display the weather We’ll take a look at how to create a .NET Core Web API controller, retrieve data from it and pass that up to the Angular front end (where it will be rendered as a page on your site). Add Controller Method We’ll initially just add a simple method to the WeatherController to make use of the OpenWeather API to get forecast by City. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 [HttpGet("[action]/{city}")] public async Task WeatherForecast(string city) { using (var client = new HttpClient()) { try { client.BaseAddress = new Uri("http://api.openweathermap.org"); var response = await client.GetAsync($"/data/2.5/weather?q={city}&appid=[Insert API Key Here ]&units=metric"); response.EnsureSuccessStatusCode(); var result = await response.Content.ReadAsStringAsync(); ...