public async void Delete(DashboardPrediction prediction) { if (await PersistenceService.DeleteStockWithId(prediction.StockId)) { Messenger.Default.Send(new TrainStatusMessage($"Deleted {prediction.Name}")); Refresh(); } else { Messenger.Default.Send(new TrainStatusMessage($"Could not delete {prediction.Name}")); } }