Design Pattern Framework 3.5
UpdateQuantity Method (productId, quantity)
Patterns-In-Action! Application ► ASPNETWebApplication.Controllers ► CartController ► UpdateQuantity(Int32, Int32)
Updates a line item in the shopping cart with a new quantity.
Declaration Syntax
C# | Visual Basic |
public ShoppingCart UpdateQuantity( int productId, int quantity )
Public Function UpdateQuantity ( _ productId As Integer, _ quantity As Integer _ ) As ShoppingCart
Return Value
Updated shopping cart.