From 68e0f1dc621d94bfca5ab991873f76bb8fbd1c91 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 27 Jun 2019 16:51:00 -0700 Subject: [PATCH] Update WeatherForecastController.cs --- .../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 93cb80858202..2b785a9a4fed 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 @@ public class WeatherForecastController : ControllerBase "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]