Skip to content

Commit b472b0a

Browse files
authored
Update WeatherForecastController.cs (#11668)
1 parent e738578 commit b472b0a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Components/Blazor/Templates/src/content/BlazorHosted-CSharp/BlazorHosted-CSharp.Server/Controllers/WeatherForecastController.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
using BlazorHosted_CSharp.Shared;
2-
using Microsoft.AspNetCore.Mvc;
32
using System;
43
using System.Collections.Generic;
54
using System.Linq;
65
using System.Threading.Tasks;
6+
using Microsoft.AspNetCore.Mvc;
7+
using Microsoft.Extensions.Logging;
78

89
namespace BlazorHosted_CSharp.Server.Controllers
910
{
@@ -16,11 +17,11 @@ public class WeatherForecastController : ControllerBase
1617
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
1718
};
1819

19-
private readonly ILogger<WeatherForecastController> _logger;
20+
private readonly ILogger<WeatherForecastController> logger;
2021

2122
public WeatherForecastController(ILogger<WeatherForecastController> logger)
2223
{
23-
_logger = logger;
24+
this.logger = logger;
2425
}
2526

2627
[HttpGet]

0 commit comments

Comments
 (0)