Преглед на файлове

Delete file for merge branch 1.2 into main (Campaign_Tracker.Server/Controllers/WeatherForecastController.cs)

pull/15/head
nano преди 3 дни
родител
ревизия
30bcef0044
променени са 1 файла, в които са добавени 0 реда и са изтрити 26 реда
  1. +0
    -26
      Campaign_Tracker.Server/Controllers/WeatherForecastController.cs

+ 0
- 26
Campaign_Tracker.Server/Controllers/WeatherForecastController.cs Целия файл

@@ -1,26 +0,0 @@
using Microsoft.AspNetCore.Mvc;

namespace Campaign_Tracker.Server.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<WeatherForecast> 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();
}
}


Loading…
Отказ
Запис

Powered by TurnKey Linux.