예제 #1
0
        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();
            }
        }