public async Task <CustomerInformationResponseModel> QueryCustomerInformationAsync( [FromBody] QueryCustomerInformationRequestModel model) { var sanitizedModel = new { model.CustomerId, Email = model.Email.SanitizeEmail(), Phone = model.Phone.SanitizePhone() }; _log.Info("Get customer information started", sanitizedModel); var result = await _customerService.QueryCustomerInformationAsync(model); _log.Info("Get customer information finished", sanitizedModel); return(result); }
public async Task <CustomerInformationResponseModel> QueryCustomerInformationAsync(QueryCustomerInformationRequestModel model) { var request = _mapper.Map <Lykke.Service.PartnersIntegration.Client.Models.CustomerInformationRequestModel>(model); var result = await _partnersIntegrationClient.CustomersApi.CustomerInformation(request); return(_mapper.Map <CustomerInformationResponseModel>(result)); }