From b29ebd7805357161a22e267571c373a2a307ea78 Mon Sep 17 00:00:00 2001 From: blyssco Date: Sat, 5 Jul 2025 12:41:45 +0200 Subject: [PATCH] Cleaning initial project --- .../Controllers/WeatherForecastController.cs | 33 ------------------- Liber_Incantamentum/WeatherForecast.cs | 13 -------- 2 files changed, 46 deletions(-) delete mode 100644 Liber_Incantamentum/Controllers/WeatherForecastController.cs delete mode 100644 Liber_Incantamentum/WeatherForecast.cs diff --git a/Liber_Incantamentum/Controllers/WeatherForecastController.cs b/Liber_Incantamentum/Controllers/WeatherForecastController.cs deleted file mode 100644 index 4369e39..0000000 --- a/Liber_Incantamentum/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace Liber_Incantamentum.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(); - } - } -} diff --git a/Liber_Incantamentum/WeatherForecast.cs b/Liber_Incantamentum/WeatherForecast.cs deleted file mode 100644 index 5abf9fb..0000000 --- a/Liber_Incantamentum/WeatherForecast.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace Liber_Incantamentum -{ - public class WeatherForecast - { - public DateOnly Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string? Summary { get; set; } - } -}