private void Select() { var products = locationApi.GetProductSupplier(locationId, SelectedSupplier.Id).Select(x => new ProductOrdered() { ProductId = x.Id, ProductName = x.Name, Value = 0, Price = x.Price, Tax = x.Tax }); Products.Clear(); foreach (var product in products) { Products.Add(product); } }