public async void Save(string identifier, GridSettings toSave)
 {
     var obs = BlobCache.LocalMachine.InsertObject(identifier, toSave);
     await obs;
 }
        private void SaveSettings()
        {
            if (DataGrid == null) return;
            var settings = new GridSettings();
            foreach (var col in DataGrid.Columns)
            {
                var columnSettings = CreateColumnSettings(col);
                settings.ColumnSettings.Add(columnSettings);
                if (col.SortDirection == null) continue;

                settings.ColumnSort = new ColumnSort
                {
                    Direction = col.SortDirection.Value,
                    Index = col.DisplayIndex
                };
            }
            SettingsRepository.Save(SerializationId, settings);
        }
 public async void Save(string identifier, GridSettings toSave)
 {
     var   obs = BlobCache.LocalMachine.InsertObject(identifier, toSave);
     await obs;
 }