Beispiel #1
0
        /// <summary>
        /// Allows Service layer objects to be translated into
        /// UI objects
        /// </summary>
        /// <param name="cust">Service layer object</param>
        /// <returns>UI layer object</returns>
        public static ProductModel ProductToProductModel(Product product)
        {
            ProductModel productModel = new ProductModel();
            productModel.ProductId = product.ProductId;
            productModel.ProductName = product.ProductName;
            productModel.ProductPrice = product.ProductPrice;
            return productModel;

        }
Beispiel #2
0
 partial void UpdateProduct(Product instance);
Beispiel #3
0
 partial void DeleteProduct(Product instance);
Beispiel #4
0
 partial void InsertProduct(Product instance);