void Update() { Towns.Clear(); var list = townsService.GetAsync().Result; foreach (var n in list) { Towns.Add(n); } MessengerInstance.Send(new ObservableCollection <TownsModel>()); }
void Reload() { Towns.Clear(); var townsService = new TownsService(); var townsList = townsService.GetAsync().Result; foreach (var n in townsList) { Towns.Add(n.TownName); } }