C# Class Cart, code

Inheritance: System.Web.UI.Page
Exibir arquivo Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
Add ( Product, product, Quantity, quantity ) : void
CanAdd ( Product product, Quantity quantity ) : Result
CanCloseForCheckout ( ) : Result
Cart ( EntityId customerId )
CloseForCheckout ( ) : void
Remove ( Product product ) : void
Remove ( Product product, Quantity quantity ) : void
ToString ( ) : string

Method Details

Add() public method

public Add ( Product, product, Quantity, quantity ) : void
product Product,
quantity Quantity,
return void

CanAdd() public method

public CanAdd ( Product product, Quantity quantity ) : Result
product Product
quantity Quantity
return Result

CanCloseForCheckout() public method

public CanCloseForCheckout ( ) : Result
return Result

Cart() public method

public Cart ( EntityId customerId )
customerId EntityId

CloseForCheckout() public method

public CloseForCheckout ( ) : void
return void

Remove() public method

public Remove ( Product product ) : void
product Product
return void

Remove() public method

public Remove ( Product product, Quantity quantity ) : void
product Product
quantity Quantity
return void

ToString() public method

public ToString ( ) : string
return string