private void Save(object obj) { if (!IsEdit) { _configService.AddCommand(_currentCommand); } else { _configService.UpdateCommand(_currentCommand); } _messenger.Send(new ConfigUpdatedMsg()); _messenger.Send(new CloseAddEditCommandViewMsg()); }