Example #1
0
        public PluginSettings GetTextPluginSettings(Guid databaseId)
        {
            PluginSettings          pluginSettings = null;
            SiteConfigurationEntity entity         = UnitOfWork.FindById <SiteConfigurationEntity>(databaseId);

            if (entity != null)
            {
                pluginSettings = PluginSettings.LoadFromJson(entity.Content);
            }

            return(pluginSettings);
        }
Example #2
0
        public PluginSettings GetTextPluginSettings(Guid databaseId)
        {
            SiteConfigurationEntity entity = Queryable <SiteConfigurationEntity>()
                                             .FirstOrDefault(x => x.Id == databaseId);

            PluginSettings pluginSettings = null;

            if (entity != null)
            {
                pluginSettings = PluginSettings.LoadFromJson(entity.Content);
            }

            return(pluginSettings);
        }