예제 #1
0
        public static Library.Customer MapCustomer(Entities.Customers dbmodel)
        {
            Library.Customer result = new Library.Customer
            {
                CustomerId = dbmodel.CustomerId,
                FirstName  = dbmodel.FirstName,
                LastName   = dbmodel.LastName,
            };

            return(result);
        }
예제 #2
0
        /* Customer mapping */

        public static Entities.Customers MapCustomer(Library.Customer model)
        {
            Entities.Customers result = new Entities.Customers
            {
                CustomerId = model.CustomerId,
                FirstName  = model.FirstName,
                LastName   = model.LastName,
            };

            return(result);
        }