public BindableCollection <ProductsModel> FindAndDisplayProductFindedByType() { BindableCollection <ProductsModel> toReturn = new BindableCollection <ProductsModel>(); foreach (var product in ApiConnectModel.FindByOneType(SelectedType).Result) { toReturn.Add(product); } return(toReturn); }
public void SearchFromType() { BindableCollection <ProductsModel> toReturn = new BindableCollection <ProductsModel>(); foreach (var product in ApiConnectModel.FindByOneType(SelectedType).Result) { toReturn.Add(product); } Bindable = toReturn; Refresh(); }