diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index 5e3ba9c..13a21e2 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/AlfaPrentice/.vs/AlfaPrentice/v16/.suo b/AlfaPrentice/.vs/AlfaPrentice/v16/.suo index 714b3e3..19f1ccc 100644 Binary files a/AlfaPrentice/.vs/AlfaPrentice/v16/.suo and b/AlfaPrentice/.vs/AlfaPrentice/v16/.suo differ diff --git a/AlfaPrentice/AlfaPrentice/AlfaPrentice.csproj b/AlfaPrentice/AlfaPrentice/AlfaPrentice.csproj index 0f01263..0f051f6 100644 --- a/AlfaPrentice/AlfaPrentice/AlfaPrentice.csproj +++ b/AlfaPrentice/AlfaPrentice/AlfaPrentice.csproj @@ -11,6 +11,7 @@ + diff --git a/AlfaPrentice/AlfaPrentice/Controllers/WeatherForecastController.cs b/AlfaPrentice/AlfaPrentice/Controllers/WeatherForecastController.cs deleted file mode 100644 index c35e4ad..0000000 --- a/AlfaPrentice/AlfaPrentice/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; -using Microsoft.Extensions.Logging; - -namespace AlfaPrentice.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] - public IEnumerable Get() - { - var rng = new Random(); - return Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = DateTime.Now.AddDays(index), - TemperatureC = rng.Next(-20, 55), - Summary = Summaries[rng.Next(Summaries.Length)] - }) - .ToArray(); - } - } -} diff --git a/AlfaPrentice/AlfaPrentice/WeatherForecast.cs b/AlfaPrentice/AlfaPrentice/WeatherForecast.cs deleted file mode 100644 index 2154d35..0000000 --- a/AlfaPrentice/AlfaPrentice/WeatherForecast.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - -namespace AlfaPrentice -{ - 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; } - } -}