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); }
public async Task <MerchantSetting> GetByIdAsync(string merchantId) { MerchantSettingEntity entity = await _storage.GetDataAsync(GetPartitionKey(merchantId), GetRowKey(merchantId)); return(Mapper.Map <MerchantSetting>(entity)); }