예제 #1
0
        public async Task InsertAsync(WalletSettings walletSettings)
        {
            var entity = new WalletSettingsEntity(GetPartitionKey(), GetRowKey(walletSettings.Id));

            Mapper.Map(walletSettings, entity);

            await _storage.InsertAsync(entity);
        }
예제 #2
0
        public async Task <WalletSettings> GetByIdAsync(string walletId)
        {
            WalletSettingsEntity entity = await _storage.GetDataAsync(GetPartitionKey(), GetRowKey(walletId));

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