public static Customer MapToCustomer(CustomerDAO customer)
        {
            var c = new Customer();

            c.CustomerID = customer.Id;
            c.NameID     = NameMapper.MapToName(customer.Name).NameID;
            c.AddressID  = AddressDetailMapper.MapToAddressDetail(customer.Address).AddressID;
            c.EmailID    = EmailMapper.MapToEmail(customer.Email).EmailID;
            c.PhoneID    = PhoneMapper.MapToPhone(customer.Phone).PhoneID;
            c.Active     = customer.Active;

            return(c);
        }
        public static CustomerDAO MapToCustomerDAO(Customer customer)
        {
            var c = new CustomerDAO();

            c.Id      = customer.CustomerID;
            c.Name    = NameMapper.MapToNameDAO(customer.Name);
            c.Address = AddressDetailMapper.MapToAddressDetailDAO(customer.AddressDetail);
            c.Email   = EmailMapper.MapToEmailDAO(customer.Email);
            c.Phone   = PhoneMapper.MapToPhoneDAO(customer.Phone);
            c.Active  = customer.Active;

            return(c);
        }