Design Pattern Framework 3.5
CartController Class
Patterns-In-Action! Application ► ASPNETWebApplication.Controllers ► CartController
Controller for the shopping cart.

C# | Visual Basic |
public class CartController : ControllerBase
Public Class CartController _ Inherits ControllerBase

All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
![]() |
CartController()()() |
Initializes a new instance of the CartController class
|
![]() |
AccessToken |
Gets or sets access token. If no token exists a new one is retrieved from service.
(Inherited from ControllerBase.) |
![]() |
ActionServiceClient |
Lazy loads ActionServiceClient and stores it in Session object.
(Inherited from ControllerBase.) |
![]() |
AddItem(Int32, String, Int32, Double) |
Adds an item to the shopping cart.
|
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() |
GetCart()()() |
Gets the user's cart.
|
![]() |
GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() |
MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() |
NewRequestId |
Gets a new random GUID request id.
(Inherited from ControllerBase.) |
![]() |
RemoveItem(Int32) |
Removes a line item from the shopping cart.
|
![]() |
SetShippingMethod(String) |
Sets shipping method used to compute shipping charges.
|
![]() |
ToString()()() | (Inherited from Object.) |
![]() |
UpdateQuantity(Int32, Int32) |
Updates a line item in the shopping cart with a new quantity.
|

MV Patterns: Model View Controller Pattern.
This is a 'loose' implementation of the MVC pattern.

Object | ||
![]() |
ControllerBase | |
![]() |
CartController |