clean up home controller

This commit is contained in:
Ryan Peters 2023-03-18 22:27:34 -04:00
parent 780ca056ec
commit 5cc7965400

View File

@ -7,10 +7,7 @@ namespace WeatherDashboard.Web.Controllers
{ {
private readonly IForecastService forecastService; private readonly IForecastService forecastService;
public HomeController(IForecastService forecastService) public HomeController(IForecastService forecastService) => this.forecastService = forecastService;
{
this.forecastService = forecastService;
}
public async Task<IActionResult> Index() public async Task<IActionResult> Index()
{ {