예제 #1
0
        public async Task <MerchantSetting> SetAsync(MerchantSetting merchantSetting)
        {
            var entity = new MerchantSettingEntity(GetPartitionKey(merchantSetting.MerchantId), GetRowKey(merchantSetting.MerchantId));

            Mapper.Map(merchantSetting, entity);

            await _storage.InsertOrMergeAsync(entity);

            return(merchantSetting);
        }
예제 #2
0
        public async Task <MerchantSetting> GetByIdAsync(string merchantId)
        {
            MerchantSettingEntity entity = await _storage.GetDataAsync(GetPartitionKey(merchantId), GetRowKey(merchantId));

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