private InstrumentEditViewModel LoadInstrumentEditViewModel(int id) { Instrument instrument = null; if (id > 0) { instrument = _instrumentRepository.Get(id); } var vm = new InstrumentEditViewModel { Name = (instrument != null) ? instrument.Name : string.Empty, Abbreviation = (instrument != null) ? instrument.Abbreviation : string.Empty }; return(vm); }