Design Pattern Framework 3.5
RemoveItem Method (productId)
Patterns-In-Action! Application ► ASPNETWebApplication.Controllers ► CartController ► RemoveItem(Int32)
Removes a line item from the shopping cart.
Declaration Syntax
C# | Visual Basic |
public ShoppingCart RemoveItem( int productId )
Public Function RemoveItem ( _ productId As Integer _ ) As ShoppingCart
Parameters
- productId (Int32)
- The item to be removed.
Return Value
Updated shopping cart.