private Customer BuildCustomerObjectFrom(CustomerToCreateDto customerToCreateDto) { return(new Customer(customerToCreateDto.Name, customerToCreateDto.City)); }
public void Create(CustomerToCreateDto customerToCreateDto) { var customer = BuildCustomerObjectFrom(customerToCreateDto); _customerRepository.Save(customer); }