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

            Mapper.Map(walletSettings, entity);

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

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