C# Class Kaffeplaneten.Controllers.ShoppingCartController

Inheritance: SuperController
Datei anzeigen Open project: chrban/Webapplikasjoner

Public Methods

Method Description
ShoppingCartView ( ) : System.Web.Mvc.ActionResult
getSubTotal ( int prodId ) : double
removeFromCart ( int productToBeRemoved ) : bool

Private Methods

Method Description
addToCart ( int newProd, int inQuantity ) : bool
calculateTotal ( ) : double
createCart ( ) : void
getShoppingCartItems ( ) : List
updateQuantity ( int productId, int quantity ) : int

Method Details

ShoppingCartView() public method

public ShoppingCartView ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

getSubTotal() public method

public getSubTotal ( int prodId ) : double
prodId int
return double

removeFromCart() public method

public removeFromCart ( int productToBeRemoved ) : bool
productToBeRemoved int
return bool