Пример #1
0
        public async Task InsertOrReplaceAsync(TimersSettings timersSettings)
        {
            var entity = new TimersSettingsEntity(GetPartitionKey(), GetRowKey());

            Mapper.Map(timersSettings, entity);

            await _storage.InsertOrReplaceAsync(entity);
        }
Пример #2
0
        public async Task <TimersSettings> GetAsync()
        {
            TimersSettingsEntity entity = await _storage.GetDataAsync(GetPartitionKey(), GetRowKey());

            return(Mapper.Map <TimersSettings>(entity));
        }