소스 검색

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();
}
}


불러오는 중...
취소
저장

Powered by TurnKey Linux.