Beispiel #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);
        }
Beispiel #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);
        }