@page "/" @using System.Globalization @inherits BasePage @code{ private githubpoco model = new githubpoco(); protected override async Task OnInitializedAsync() { try { var client = WtmBlazor.ClientFactory.CreateClient("github"); var info = await client.GetFromJsonAsync("/repos/dotnetcore/wtm"); model = info; } catch (Exception) { } } public class githubpoco { public int stargazers_count { get; set; } public int forks_count { get; set; } public int subscribers_count { get; set; } public int open_issues_count { get; set; } } }