From b472b0afafdb1b2211a5e2c1e07adbc4939caaa9 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Fri, 28 Jun 2019 10:12:17 -0700 Subject: [PATCH] Update WeatherForecastController.cs (#11668) --- .../Controllers/WeatherForecastController.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/Controllers/WeatherForecastController.cs b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/Controllers/WeatherForecastController.cs index 93cb808582..2b785a9a4f 100644 --- a/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/Controllers/WeatherForecastController.cs +++ b/src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/Controllers/WeatherForecastController.cs @@ -1,9 +1,10 @@ using BlazorHosted_CSharp.Shared; -using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; namespace BlazorHosted_CSharp.Server.Controllers { @@ -16,11 +17,11 @@ namespace BlazorHosted_CSharp.Server.Controllers "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }; - private readonly ILogger _logger; + private readonly ILogger logger; public WeatherForecastController(ILogger logger) { - _logger = logger; + this.logger = logger; } [HttpGet]