Example #1
0
        public SettingViewModel GetSettingViewModel()
        {
            if (settingViewModel != null)
            {
                return(settingViewModel);
            }

            var settingObj = from Setting setting in dellAppDB.Setting
                             select setting;

            settingViewModel = new SettingViewModel(settingObj.Single());

            return(settingViewModel);
        }
Example #2
0
 public void DiscardSettingViewModel()
 {
     settingViewModel = null;
 }