Beispiel #1
0
 private Customer BuildCustomerObjectFrom(CustomerToCreateDto customerToCreateDto)
 {
     return(new Customer(customerToCreateDto.Name, customerToCreateDto.City));
 }
Beispiel #2
0
        public void Create(CustomerToCreateDto customerToCreateDto)
        {
            var customer = BuildCustomerObjectFrom(customerToCreateDto);

            _customerRepository.Save(customer);
        }