private Product TranslateProductEntityToProduct(ProductEntity productEntity)
 {
     Product product = new Product();
     product.ProductID = productEntity.ProductID;
     product.Name = productEntity.Name;
     product.Description = productEntity.Description;
     product.Category = productEntity.Category;
     product.Price = (decimal)productEntity.Price;
     return product;
 }
        private Product TranslateProductEntityToProduct(
            ProductEntity productEntity)
        {
            Product product = new Product();

            product.ProductID = productEntity.ProductID;
            product.ProductName = productEntity.ProductName;
            product.QuantityPerUnit = productEntity.QuantityPerUnit;
            product.UnitPrice = (decimal)productEntity.UnitPrice;
            product.Discontinued = productEntity.Discontinued;

            return product;
        }