Exemplo n.º 1
0
        private CustomerCreatedResponse ImplementationOne(CreateCustomerRequest request)
        {
            try
            {
                int id = _repository.RegisterCustomer("name");
            }
            catch (Exception e)
            {
                return(new CustomerCreatedResponse {
                    IsSuccess = false
                });
            }
            try
            {
                _gateway.SendMail("GOOD MORNING vietnam");
            }
            catch (Exception e)
            {
                return(new CustomerCreatedResponse {
                    IsSuccess = false
                });
            }

            return(new CustomerCreatedResponse());
        }