private void ExecuteRemoveLocation() { var selectedLocation = SelectedLocation; _locations.Remove(SelectedLocation); SelectedLocation = null; var removeTask = Task.Run(() => _locationManager.Delete(selectedLocation)); removeTask.ContinueWith(task => ExecuteGetLocations()); }