/// <summary> /// Funciton to call the Recommendation API to retrieve all available <see cref="RecommandationModel"/> /// </summary> /// <returns></returns> private async Task GetModels() { List <RecommandationModel> models = await _webRequest.GetModels(HttpMethod.Get); foreach (RecommandationModel model in models) { AvailableModels.Add(model); } SelectedModel = AvailableModels.FirstOrDefault(); }
/// <summary> /// Funciton to call the Recommendation API to retrieve all available <see cref="RecommandationModels"/> /// </summary> /// <returns></returns> private async Task GetModels() { RecommandationModels models = await _webRequest.MakeRequest <object, RecommandationModels>(HttpMethod.Get, string.Empty); foreach (RecommandationModel model in models.models) { AvailableModels.Add(model); } SelectedModel = AvailableModels.FirstOrDefault(); }