From d39b06e3e9463a5eaaf6afec0cebdbc3b917c2d4 Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 13 Feb 2026 22:20:47 +0100 Subject: [PATCH] Remove `WeatherForecastController` and update project file to clean up unused code. --- API/API.csproj | 4 +++ API/Controllers/WeatherForecastController.cs | 33 -------------------- 2 files changed, 4 insertions(+), 33 deletions(-) delete mode 100644 API/Controllers/WeatherForecastController.cs diff --git a/API/API.csproj b/API/API.csproj index e292517..4a3c7a9 100644 --- a/API/API.csproj +++ b/API/API.csproj @@ -10,4 +10,8 @@ + + + + diff --git a/API/Controllers/WeatherForecastController.cs b/API/Controllers/WeatherForecastController.cs deleted file mode 100644 index aaf3a93..0000000 --- a/API/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace API.Controllers -{ - [ApiController] - [Route("[controller]")] - public class WeatherForecastController : ControllerBase - { - private static readonly string[] Summaries = new[] - { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - }; - - private readonly ILogger _logger; - - public WeatherForecastController(ILogger logger) - { - _logger = logger; - } - - [HttpGet(Name = "GetWeatherForecast")] - public IEnumerable Get() - { - return Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)), - TemperatureC = Random.Shared.Next(-20, 55), - Summary = Summaries[Random.Shared.Next(Summaries.Length)] - }) - .ToArray(); - } - } -}