private async void DeleteDeparture() { try { await _service.DeleteAsync(SelectedDeparture.Id); Departures.Remove(SelectedDeparture); } catch (System.InvalidOperationException ex) { await _dialogService.ShowMessage(ex.Message, "Error"); } }
private async void DeleteDeparture() { try { await _service.DeleteAsync(SelectedDeparture.Id); Departures.Remove(SelectedDeparture); } catch (System.InvalidOperationException ex) { await _dialogService.ShowMessage(ex.Message, "Error"); } }