// Library to/from Models
 public static Models.Customer ManMap2(Library.Customer customer) => new Models.Customer
 {
     CustomerID       = customer.CustomerID,
     FirstName        = customer.FirstName,
     LastName         = customer.LastName,
     CustomerPassword = customer.CustomerPassword
 };
Beispiel #2
0
 public static DA.Customer ManMap(Library.Customer customer) => new DA.Customer
 {
     CustomerId       = customer.CustomerID,
     FirstName        = customer.FirstName,
     LastName         = customer.LastName,
     DefaultAddressId = customer.DefaultAddressId,
     CustomerPassword = customer.CustomerPassword
 };