public async Task SetSettingAsync(string key, string value) { await _table.InsertOrMergeAsync(new AppSettingEntity { PartitionKey = AppSettingEntity.GeneratePartitionKey(), RowKey = key, Value = value }); }
public async Task <string> GetSettingAsync(string key) { var entity = await _table.GetDataAsync(AppSettingEntity.GeneratePartitionKey(), key); return(entity?.Value); }