From 7d5a176d05340f37a6fbf19e4fac93e63119db16 Mon Sep 17 00:00:00 2001 From: Stedoss <29103029+Stedoss@users.noreply.github.com> Date: Sat, 29 Oct 2022 20:39:53 +0100 Subject: [PATCH] Remove template project files --- .../Controllers/WeatherForecastController.cs | 32 ------------------- .../LeedsBeerQuest.API/WeatherForecast.cs | 12 ------- 2 files changed, 44 deletions(-) delete mode 100644 backend/LeedsBeerQuest.API/LeedsBeerQuest.API/Controllers/WeatherForecastController.cs delete mode 100644 backend/LeedsBeerQuest.API/LeedsBeerQuest.API/WeatherForecast.cs diff --git a/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/Controllers/WeatherForecastController.cs b/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/Controllers/WeatherForecastController.cs deleted file mode 100644 index f7c5781..0000000 --- a/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace LeedsBeerQuest.API.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 = DateTime.Now.AddDays(index), - TemperatureC = Random.Shared.Next(-20, 55), - Summary = Summaries[Random.Shared.Next(Summaries.Length)] - }) - .ToArray(); - } -} \ No newline at end of file diff --git a/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/WeatherForecast.cs b/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/WeatherForecast.cs deleted file mode 100644 index 03fc7ff..0000000 --- a/backend/LeedsBeerQuest.API/LeedsBeerQuest.API/WeatherForecast.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace LeedsBeerQuest.API; - -public class WeatherForecast -{ - public DateTime Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string? Summary { get; set; } -} \ No newline at end of file