// in comes a service model id and out public static EntityCustomers.CustomerAddress SerialiseCustomerAddress(ServiceCustomers.CustomerAddress serviceCustomerAddress) { var entityAddress = new EntityCustomers.CustomerAddress() { Id = serviceCustomerAddress.Id, Line1 = serviceCustomerAddress.Line1, Line2 = serviceCustomerAddress.Line2, Line3 = serviceCustomerAddress.Line3, City = serviceCustomerAddress.City, Region = serviceCustomerAddress.Region, Country = serviceCustomerAddress.Country, Postcode = serviceCustomerAddress.Postcode, CreatedOn = serviceCustomerAddress.CreatedOn, UpdatedOn = serviceCustomerAddress.UpdatedOn }; return(entityAddress); }
public static ServiceCustomers.CustomerAddress SerialiseCustomerAddress(EntityCustomers.CustomerAddress entityCustomerAddress) { var serviceAddress = new ServiceCustomers.CustomerAddress() { Id = entityCustomerAddress.Id, Line1 = entityCustomerAddress.Line1, Line2 = entityCustomerAddress.Line2, Line3 = entityCustomerAddress.Line3, City = entityCustomerAddress.City, Region = entityCustomerAddress.Region, Country = entityCustomerAddress.Country, Postcode = entityCustomerAddress.Postcode, CreatedOn = entityCustomerAddress.CreatedOn, UpdatedOn = entityCustomerAddress.UpdatedOn }; return(serviceAddress); }