From a83b518a7a16d93f207bab8ec5c54c14c9493e23 Mon Sep 17 00:00:00 2001 From: transtrike Date: Sun, 20 Dec 2020 10:44:58 +0200 Subject: Removed Razor, added Angular --- src/DevHive.Blazor/Data/WeatherForecastService.cs | 25 ----------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/DevHive.Blazor/Data/WeatherForecastService.cs (limited to 'src/DevHive.Blazor/Data/WeatherForecastService.cs') diff --git a/src/DevHive.Blazor/Data/WeatherForecastService.cs b/src/DevHive.Blazor/Data/WeatherForecastService.cs deleted file mode 100644 index 23efe36..0000000 --- a/src/DevHive.Blazor/Data/WeatherForecastService.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Linq; -using System.Threading.Tasks; - -namespace DevHive.Blazor.Data -{ - public class WeatherForecastService - { - private static readonly string[] Summaries = new[] - { - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - }; - - public Task GetForecastAsync(DateTime startDate) - { - var rng = new Random(); - return Task.FromResult(Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = startDate.AddDays(index), - TemperatureC = rng.Next(-20, 55), - Summary = Summaries[rng.Next(Summaries.Length)] - }).ToArray()); - } - } -} -- cgit v1.2.3