public Customer DoCreditCheck(Customer customer) { // Do credit check customer.HasCreditLimit = true; customer.CreditLimit = _customerCreditServiceClient.GetCreditLimit(customer.Firstname, customer.Surname, customer.DateOfBirth); return(customer); }
public Customer DoCreditCheck(Customer customer) { // Do credit check and double credit limit customer.HasCreditLimit = true; var creditLimit = _customerCreditServiceClient.GetCreditLimit(customer.Firstname, customer.Surname, customer.DateOfBirth); creditLimit = creditLimit * 2; customer.CreditLimit = creditLimit; return(customer); }