namespace HelloShop.WebApp; public class WeatherApiClient(HttpClient httpClient) { public async Task GetWeatherAsync() { return await httpClient.GetFromJsonAsync("/weatherforecast") ?? []; } } public record WeatherForecast(DateOnly Date, int TemperatureC, string? Summary) { public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); }