public async Task OnGetAsync() { HttpClient httpclient = clientFactory.CreateClient(); ProblemsClient client = new ProblemsClient(httpclient); IList <Core.Problems.ProblemMetadata> ms = await client.GetAllAsync(); List <ProblemModel> ss = new List <ProblemModel>(); foreach (Core.Problems.ProblemMetadata v in ms) { ss.Add(await ProblemModel.GetAsync(v, httpclient, false, false)); } Problems = ss; }