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

            _customerRepository.Save(customer);
        }