Design Pattern Framework 3.5
AddItem Method (productId, name, quantity, unitPrice)
Patterns-In-Action! Application ► ASPNETWebApplication.Controllers ► CartController ► AddItem(Int32, String, Int32, Double)
Adds an item to the shopping cart.
Declaration Syntax
C# | Visual Basic |
public ShoppingCart AddItem( int productId, string name, int quantity, double unitPrice )
Public Function AddItem ( _ productId As Integer, _ name As String, _ quantity As Integer, _ unitPrice As Double _ ) As ShoppingCart
Return Value
Updated shopping cart.