示例#1
0
        public override Customer Map(CustomerDTO source)
        {
            Customer newentity = _factory.Construct();

            CopyTo(source, newentity);
            return(newentity);
        }
示例#2
0
        public override Customer Map(CustomerCreateSRO source)
        {
            var newentity = _factory.Construct();

            newentity.FirstName = source.FirstName;
            newentity.Initials  = source.Initials;
            newentity.LastName  = source.LastName;
            return(newentity);
        }