Пример #1
0
        private static Persistence.EntityFramework.Entities.Product Map(Persistence.EntityFramework.Entities.Product productDb, Models.Products.Product modelProduct)
        {
            productDb.ProductName = modelProduct.ProductName;
            productDb.UnitPrice   = modelProduct.UnitPrice;

            return(productDb);
        }
Пример #2
0
 private static Models.Products.Product Map(Persistence.EntityFramework.Entities.Product dbProduct)
 {
     return(new Models.Products.Product()
     {
         ProductId = dbProduct.ProductId,
         ProductName = dbProduct.ProductName,
         UnitPrice = dbProduct.UnitPrice,
     });
 }