private static void InitializeDataService()
        {
            if (!ConfigValueProvider.TryGetConfigValueAs <string>(AppConstants.Data.DataServiceKey, out string dataservice) ||
                AppConstants.Data.Services.Contains(dataservice))
            {
                dataservice = AppConstants.Data.Default;
                try
                {
                    Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
                    if (config != null)
                    {
                        var found = config.AppSettings.Settings[AppConstants.Data.DataServiceKey];
                        if (found == null)
                        {
                            config.AppSettings.Settings.Add(AppConstants.Data.DataServiceKey, AppConstants.Data.Default);
                        }

                        config.Save();
                        ConfigurationManager.RefreshSection(AppConstants.Data.AppSettings);
                    }
                }
                catch (ConfigurationErrorsException ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
        public static Workspace Workspace()
        {
            Workspace model    = new Workspace();
            string    strategy = ConfigValueProvider.GetConfigValueAs <string>(AppConstants.Data.DataServiceKey);

            if (Enum.TryParse <DataServiceStrategyOption>(strategy, true, out DataServiceStrategyOption option))
            {
                model.DataServiceStrategy = option;
            }
            return(model);
        }