/// <inheritdoc/> public async Task <FixedCommissionAmount> GetFixedCommissionAsync(string productCode) { var request = new GetFixedCommissionRequest { ProductCode = productCode }; var response = await this.fixedCommissionsClient.GetFixedCommissionAsync(request); return(this.mapper.Map <FixedCommissionAmount>(response.FixedCommission)); }
/// <inheritdoc/> public override async Task <GetFixedCommissionResponse> GetFixedCommission(GetFixedCommissionRequest request, ServerCallContext context) { var fixedCommission = await this.fixedCommissionService.GetFixedCommissionAsync(request.ProductCode); return(new GetFixedCommissionResponse { FixedCommission = this.mapper.Map <FixedCommissionAmount>(fixedCommission), }); }