public int?GetNullableInt32ByName(string name)
        {
            AccountSettingDto setting = Items.FirstOrDefault(s => s.Name == name && s.IsActive);

            if (setting != null)
            {
                if (string.IsNullOrEmpty(setting.Value))
                {
                    return(null);
                }
                else
                {
                    int result = 0;
                    if (Int32.TryParse(setting.Value, out result))
                    {
                        return(result);
                    }
                    else
                    {
                        return(null);
                    }
                }
            }
            return(null);
        }
        public string GetStringByName(string name)
        {
            AccountSettingDto setting = Items.FirstOrDefault(s => s.Name == name && s.IsActive);

            if (setting != null)
            {
                return(setting.Value);
            }
            return(null);
        }
        public int?GetInt32ByName(string name)
        {
            AccountSettingDto setting = Items.FirstOrDefault(s => s.Name == name && s.IsActive);

            if (setting != null)
            {
                return(Convert.ToInt32(setting.Value));
            }
            return(null);
        }
        public bool?GetBoolByName(string name)
        {
            AccountSettingDto setting = Items.FirstOrDefault(s => s.Name == name && s.IsActive);

            if (setting != null)
            {
                return(Convert.ToBoolean(setting.Value));
            }
            return(null);
        }