using System.Net.Http.Json; using TIAMWebApp.Shared.Application.Interfaces; using TIAMWebApp.Shared.Application.Models; namespace TIAMWebApp.Client.Services { public class WeatherForecastService : IWeatherForecastService { private readonly HttpClient http; public WeatherForecastService(HttpClient http) { this.http = http; } public Task GetWeatherForecastAsync() { return http.GetFromJsonAsync(APIUrls.WeatherForecast); } } }