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); }
/* 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); }