public void UpdateSettings(AppSettings setting)
        {
            DbAccessor conn = new DbAccessor();

            var item = GetKeyByName(setting.Key);

            if (item == null)
            {
                conn.InsertRecord <AppSettings>(setting);
            }
            else
            {
                conn.UpdateRecord <AppSettings>(setting);
            }
        }
        public void DeleteSetting(AppSettings setting)
        {
            DbAccessor conn = new DbAccessor();

            conn.DeleteRecord <AppSettings>(setting);
        }
        public List <AppSettings> GetAllSettings()
        {
            DbAccessor conn = new DbAccessor();

            return(conn.GetTableItems <AppSettings>());
        }