/// <summary>
        /// Seed app settings for a for the applications - general - only a single instance of these
        /// settings for the entire application
        /// </summary>
        private void SeedBasicApplicationSettings()
        {
            if(!_context.ApplicationSettings.Any(
                x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.EmailServiceUserName.ToString()))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.EmailServiceUserName.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.Application
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }

            if (!_context.ApplicationSettings.Any(
                x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.EmailServiceKeyCode.ToString()))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.EmailServiceKeyCode.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.Application
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }

            if (!_context.ApplicationSettings.Any(
                x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.EmailServiceSenderEmailAddress.ToString()))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.EmailServiceSenderEmailAddress.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.Application,
                    Value = HIResources.Strings.DefaultAppEmailAddress
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }

            if (!_context.ApplicationSettings.Any(
                x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.EmailServiceOnlineType.ToString()))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.EmailServiceOnlineType.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.Application
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }
        }
        private void SeedBasicApplicationSettings()
        {
            // Button panel
            if (!_context.ApplicationSettings.Any(
                x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.DashboardButtonsPanel.ToString() &&
                    x.UserId == _userId))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.DashboardButtonsPanel.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.User,
                    Value = "true",
                    UserId = _userId
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }

            // Notifications Panel
            if (!_context.ApplicationSettings.Any(
               x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.DashboardNotificationsPanel.ToString() &&
                    x.UserId == _userId))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.DashboardNotificationsPanel.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.User,
                    Value = "true",
                    UserId = _userId
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }

            // All asset pie char Panel
            if (!_context.ApplicationSettings.Any(
               x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.DashboardAssetsPieChartPanel.ToString() &&
                    x.UserId == _userId))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.DashboardAssetsPieChartPanel.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.User,
                    Value = "true",
                    UserId = _userId
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }

            // Obsolete panel
            if (!_context.ApplicationSettings.Any(
               x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.DashboardAssetsObsoleteChartPanel.ToString() &&
                    x.UserId == _userId))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.DashboardAssetsObsoleteChartPanel.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.User,
                    Value = "true",
                    UserId = _userId
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }

            // Warranty Panel
            if (!_context.ApplicationSettings.Any(
               x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.DashboardAssetsWarrantyExpiryChartPanel.ToString() &&
                    x.UserId == _userId))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.DashboardAssetsWarrantyExpiryChartPanel.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.User,
                    Value = "true",
                    UserId = _userId
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }

            // Wishlist panel
            if (!_context.ApplicationSettings.Any(
               x => x.AppSetting.Key == EnumHelper.ApplicationSettingKeys.DashboardAssetsWishlistStatsPanel.ToString() &&
                    x.UserId == _userId))
            {

                var setting = _context.Settings.FirstOrDefault(x => x.Key == EnumHelper.ApplicationSettingKeys.DashboardAssetsWishlistStatsPanel.ToString());

                ApplicationSetting appSetting = new ApplicationSetting
                {
                    AppSetting = setting,
                    ScopeType = EnumHelper.AppSettingScopeType.User,
                    Value = "true",
                    UserId = _userId
                };
                _context.ApplicationSettings.Add(appSetting);
                _context.SaveChanges();
            }
        }