/// <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; }
partial void UpdateProduct(Product instance);
partial void DeleteProduct(Product instance);
partial void InsertProduct(Product instance);