void LoadWines() { Wines.Add(new Wine(1, "White Wine", "Model 2013", "$99", "4.5", "4.5", "img01.png")); Wines.Add(new Wine(2, "White Wine", "Model 2013", "$99", "4.5", "4.5", "img02.png")); Wines.Add(new Wine(3, "White Wine", "Model 2013", "$99", "4.5", "4.5", "img02.png")); Wines.Add(new Wine(4, "White Wine", "Model 2013", "$99", "4.5", "4.5", "img03.png")); Wines.Add(new Wine(5, "White Wine", "Model 2013", "$99", "4.5", "4.5", "img03.png")); Wines.Add(new Wine(6, "White Wine", "Model 2013", "$99", "4.5", "4.5", "img01.png")); Wines.Add(new Wine(7, "White Wine", "Model 2013", "$99", "4.5", "4.5", "img02.png")); Wines.Add(new Wine(8, "White Wine", "Model 2013", "$99", "4.5", "4.5", "img02.png")); Wines.Add(new Wine(9, "White Wine", "Model 2013", "$99", "4.5", "4.5", "img03.png")); }
public async Task Initialise() { var wines = await _wineService.GetWines(); Wines.Clear(); foreach (var wine in wines) { Wines.Add(new WineItemViewItem { Name = wine.Name, Image = wine.ImagePath, Year = wine.VintageYear }); } }