Esempio n. 1
0
        public Entities.Customer ParseCustomer(Dozen2Models.Customer customer)
        {
            var entityCustomer = new Entities.Customer
            {
                Name        = customer.Name,
                Age         = customer.Age,
                PhoneNumber = customer.PhoneNumber
            };

            return(entityCustomer);
        }
Esempio n. 2
0
        public Dozen2Models.Customer ParseCustomer(Entities.Customer entityCustomer)
        {
            var customer = new Dozen2Models.Customer
            {
                Name        = entityCustomer.Name,
                Age         = entityCustomer.Age,
                PhoneNumber = entityCustomer.PhoneNumber,
                CustomerId  = entityCustomer.CustomerId
            };

            return(customer);
        }