From 00ff083a7639b885720a6583d3fa786bf3696e66 Mon Sep 17 00:00:00 2001 From: ryzij Date: Sun, 9 Aug 2026 04:14:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=BB?= =?UTF-8?q?=D0=B8=D1=88=D0=BD=D0=B5=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/WeatherForecastController.cs | 26 ------------------- .../Models/WeatherForecast.cs | 12 --------- 2 files changed, 38 deletions(-) delete mode 100644 Backend/MonitorPanel/MonitorPanel.API/Controllers/WeatherForecastController.cs delete mode 100644 Backend/MonitorPanel/MonitorPanel.Core/Models/WeatherForecast.cs 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; } -}