コード例 #1
0
        public CustomerDto Build(StormCustomer stormCustomer)
        {
            CustomerDto dto = new CustomerDto();

            dto.ExternalId = stormCustomer.Id.ToString();
            dto.FirstName  = stormCustomer.FirstName;
            dto.LastName   = stormCustomer.LastName;
            dto.Phone      = stormCustomer.Phone;
            dto.Email      = stormCustomer.Email;

            return(dto);
        }
コード例 #2
0
        private CustomerDto CustomerToDto(StormCustomer stormCustomer)
        {
            CustomerBuilder builder = new CustomerBuilder();

            return(builder.Build(stormCustomer));
        }