public async void UpdateSelectedInstrument(Instrument instrument) { var updatedInstrument = await _instrumentRepository.UpdateInstrumentAsync(_selectedId, instrument); if (updatedInstrument == null) { return; } else { await _instrumentRepository.SaveChangesAsync(); MessageBox.Show("Updated Successfully", "Done"); WindowLoaded(); UpdateInstrument = new Instrument(); } }