diff --git a/Backend/MonitorPanel/MonitorPanel.API/Controllers/WeatherForecastController.cs b/Backend/MonitorPanel/MonitorPanel.API/Controllers/WeatherForecastController.cs deleted file mode 100644 index 68e2b4d..0000000 --- a/Backend/MonitorPanel/MonitorPanel.API/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Microsoft.AspNetCore.Mvc; -using MonitorPanel.Core.Models; - -namespace MonitorPanel.API.Controllers; - -[ApiController] -[Route("[controller]")] -public class WeatherForecastController : ControllerBase -{ - private static readonly string[] Summaries = - [ - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - ]; - - [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/Backend/MonitorPanel/MonitorPanel.Core/Models/WeatherForecast.cs b/Backend/MonitorPanel/MonitorPanel.Core/Models/WeatherForecast.cs deleted file mode 100644 index 286a19b..0000000 --- a/Backend/MonitorPanel/MonitorPanel.Core/Models/WeatherForecast.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace MonitorPanel.Core.Models; - -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; } -}