Daniel Wathen 72e7a55ab4 Updated daily report to show correct information when two work weeks split quarters.
Also current changes to project with Blazor implementation is implemented here as well.
2023-04-03 09:58:28 -07:00

19 lines
462 B
C#

using System.Text.Json;
namespace ReportingServices.Shared.Blazor.HelperClasses;
public static class ApiCaller
{
public static async Task<T> GetApi<T>(string url)
{
T deserializedJson = default;
using (HttpClient client = new())
{
string apiResponse = await client.GetStringAsync(url);
deserializedJson = JsonSerializer.Deserialize<T>(apiResponse);
}
return deserializedJson;
}
}