public PluginSettings GetTextPluginSettings(Guid databaseId) { PluginSettings pluginSettings = null; SiteConfigurationEntity entity = UnitOfWork.FindById <SiteConfigurationEntity>(databaseId); if (entity != null) { pluginSettings = PluginSettings.LoadFromJson(entity.Content); } return(pluginSettings); }
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); }