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); }
private CustomerDto CustomerToDto(StormCustomer stormCustomer) { CustomerBuilder builder = new CustomerBuilder(); return(builder.Build(stormCustomer)); }