private async Task GetPlacesByAverageVariationPourcentage() { ObservableCollection <ExpensesGestionModel> listGestionModel = new ObservableCollection <ExpensesGestionModel>(); ExpensesGestionModel gestionModel; var service = new PlacesService(); places = await service.GetPlacesByAverageVariationPourcentage(PourcentageAverageVariation); foreach (Place place in places) { gestionModel = new ExpensesGestionModel() { IdModel = place.PlaceId, Average = place.AverageAmount, Name = place.Name, IsCategory = false }; listGestionModel.Add(gestionModel); } ExpensesModels = listGestionModel; if (listGestionModel.Count == 0) { var loader = new ResourceLoader(); ShowMessageDialog(loader.GetString("expensesGestionPlaceError")); } }