public async Task InsertOrReplaceAsync(HedgeSettings hedgeSettings) { var entity = new HedgeSettingsEntity(GetPartitionKey(), GetRowKey()); Mapper.Map(hedgeSettings, entity); await _storage.InsertOrReplaceAsync(entity); }
public async Task <HedgeSettings> GetAsync() { HedgeSettingsEntity entity = await _storage.GetDataAsync(GetPartitionKey(), GetRowKey()); return(Mapper.Map <HedgeSettings>(entity)); }