/// <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(); }
public void SetAvailableModels(List <VehicleModels> models) { AvailableModels.Add(new SelectListItem() { Text = "--", Value = "" }); foreach (var model in models) { AvailableModels.Add(new SelectListItem { Text = model.Model, Value = model.ModelId.ToString() }); } }
public OpenSourceSettingsViewModel() { Model = AvailableModels.First(); }
public ClarifaiSettingsViewModel() { Model = AvailableModels.First(); }