Esempio n. 1
0
        public Customer CreateCustomer(Customer customer)
        {
            var createdCustomer = _customerHandler.CreateCustomer(customer);

            return(createdCustomer);
        }
Esempio n. 2
0
        public async Task <IActionResult> Post(CreateCustomerRequest request)
        {
            await _customerHandler.CreateCustomer(request.ToDomain());

            return(Ok());
        }