CartController Class

Design Pattern Framework 3.5

Design Pattern Framework 3.5 CartController Class
Patterns-In-Action! ApplicationASPNETWebApplication.ControllersCartController
Controller for the shopping cart.
Declaration Syntax
C# Visual Basic
public class CartController : ControllerBase
Public Class CartController _
	Inherits ControllerBase
Members
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)
Determines whether the specified Object is equal to the current 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()()()
Returns a String that represents the current Object.
(Inherited from Object.)
UpdateQuantity(Int32, Int32)
Updates a line item in the shopping cart with a new quantity.

Remarks
MV Patterns: Model View Controller Pattern. This is a 'loose' implementation of the MVC pattern.
Inheritance Hierarchy
Object
ControllerBase
  CartController

Assembly: ASPNETWebApplication (Module: ASPNETWebApplication) Version: 1.0.0.0 (1.0.0.0)