public override List <IUIData> GetData(string Identifier, Dictionary <string, string> Parameters)
        {
            switch ((AppFactory.Identifier)Enum.Parse(typeof(AppFactory.Identifier), Identifier))
            {
            case AppFactory.Identifier.setting_setting:
                return(SettingController.GetData(UserInfo, Identifier, Parameters));

            default:
                break;
            }
            return(base.GetData(Identifier, Parameters));
        }
        internal static List <IUIData> GetData(UserInfo userInfo, string identifier, Dictionary <string, string> parameters)
        {
            SettingController                 sc       = new SettingController();
            Dictionary <string, IUIData>      Settings = new Dictionary <string, IUIData>();
            List <Common.Components.TreeView> folders  = BrowseUploadFactory.GetFoldersTree(PortalSettings.Current.PortalId, "image");

            Settings.Add("AllowedAttachmentFileExtensions", new UIData {
                Name = "AllowedAttachmentFileExtensions", Value = FileSetting.FileType
            });
            Settings.Add("MaxFileSize", new UIData {
                Name = "MaxFileSize", Value = FileSetting.FileSize.ToString()
            });
            Settings.Add("Folders", new UIData {
                Name = "Folders", Options = folders, Value = folders.Count > 0 ? folders.FirstOrDefault().Value.ToString() : "0"
            });
            Settings.Add("Files", new UIData {
                Name = "Files", Options = null
            });
            string timezoneid = TimeZoneInfo.Local.DisplayName;

            //Settings.Add("TimeZone", new UIData { Name = "TimeZone", Options = TimeZoneInfo.GetSystemTimeZones().Select(a => new { a.Id, a.DisplayName }), OptionsText = "DisplayName", OptionsValue = "Id", Value = timezoneid });
            Settings.Add("PortalSetting", new UIData {
                Name = "PortalSetting", Value = "", Options = new UpdateSiteSettingsRequest()
                {
                    LogoFile = new FileDto(), FavIcon = new FileDto()
                }
            });

            string  cultureCode = PortalSettings.Current.CultureCode;
            dynamic siteSetting = sc.GetPortalSettings(PortalSettings.Current.PortalId, cultureCode).Data;

            Settings.Add("SiteSettings", new UIData {
                Name = "SiteSettings", Value = "", Options = siteSetting
            });
            Settings.Add("SocialSharing", new UIData {
                Name = "SocialSharing", Value = "", Options = new FileDto()
            });

            string data = PortalController.GetPortalSetting("SocialSharingLogo", PortalSettings.Current.PortalId, null, cultureCode);

            string LogoURL = string.Empty, FavIconurl = string.Empty, SocialSharingLogourl = string.Empty, HomeScreenIcon = string.Empty;

            if (siteSetting.LogoFile.fileId > 0)
            {
                LogoURL = FileManager.Instance.GetUrl(FileManager.Instance.GetFile(siteSetting.LogoFile.fileId));
            }

            if (siteSetting.FavIcon.fileId > 0)
            {
                FavIconurl = FileManager.Instance.GetUrl(FileManager.Instance.GetFile(siteSetting.FavIcon.fileId));
            }

            string PortalRoot = Core.Managers.PageManager.GetPortalRoot(PortalSettings.Current.PortalId);

            PortalRoot = PortalRoot + "/";

            SocialSharingLogourl = PortalRoot + PortalController.GetPortalSetting("SocialSharingLogo", PortalSettings.Current.PortalId, "", cultureCode);
            HomeScreenIcon       = PortalRoot + PortalController.GetPortalSetting("HomeScreenIcon", PortalSettings.Current.PortalId, "", cultureCode);
            Settings.Add("LogoFile", new UIData {
                Name = "LogoFile", Value = LogoURL, Options = LogoURL
            });
            Settings.Add("FavIcon", new UIData {
                Name = "FavIcon", Value = FavIconurl, Options = FavIconurl
            });
            Settings.Add("SocialSharingLogo", new UIData {
                Name = "SocialSharingLogo", Value = SocialSharingLogourl, Options = new FileDto()
                {
                    fileId = -1, folderId = 0
                }
            });
            Settings.Add("HomeScreenIcon", new UIData {
                Name = "HomeScreenIcon", Value = HomeScreenIcon, Options = new FileDto()
                {
                    fileId = -1, folderId = 0
                }
            });
            Settings.Add("Uid", new UIData()
            {
                Name = "Uid", Value = ""
            });
            Settings.Add("DefaultFavIcon", new UIData()
            {
                Name = "DefaultFavIcon", Value = Globals.ApplicationPath + "/favicon.ico"
            });
            string[] IconFolders = GetIconFolders();
            Settings.Add("IconFolders", new UIData {
                Name = "IconFolders", Options = IconFolders.Select(a => new { Value = a }), Value = "0", OptionsText = "Value", OptionsValue = "Value"
            });

            return(Settings.Values.ToList());
        }