C# Class EPiServerSiteCMS.Business.CartService

Mostra file Open project: Techromix/Internship Class Usage Examples

Public Properties

Property Type Description
totalPrice decimal

Public Methods

Method Description
AddToCart ( string code, int quantity ) : void
AppendToCart ( Cart cartToAppend ) : void
CartService ( CartHelper cartHelper ) : System
CartService ( CartHelper cartHelper ) : System.Collections.Generic
Checkout ( EPiServerSiteCMS.Models.ViewModels.CheckoutVM checkoutVM ) : void
DeleteCart ( ) : void
EditItemFromCart ( string code, decimal quantity ) : void
GetCartItems ( ) : IEnumerable
GetLineItem ( string stringcodeItem ) : LineItem
GetLineItemPrice ( string code ) : decimal
GetNumberOfItemsInCart ( ) : decimal
GetTotalPrice ( ) : decimal
RemoveItemFromCart ( string code ) : void
getCart ( ) : Cart

Method Details

AddToCart() public method

public AddToCart ( string code, int quantity ) : void
code string
quantity int
return void

AppendToCart() public method

public AppendToCart ( Cart cartToAppend ) : void
cartToAppend Cart
return void

CartService() public method

public CartService ( CartHelper cartHelper ) : System
cartHelper CartHelper
return System

CartService() public method

public CartService ( CartHelper cartHelper ) : System.Collections.Generic
cartHelper CartHelper
return System.Collections.Generic

Checkout() public method

public Checkout ( EPiServerSiteCMS.Models.ViewModels.CheckoutVM checkoutVM ) : void
checkoutVM EPiServerSiteCMS.Models.ViewModels.CheckoutVM
return void

DeleteCart() public method

public DeleteCart ( ) : void
return void

EditItemFromCart() public method

public EditItemFromCart ( string code, decimal quantity ) : void
code string
quantity decimal
return void

GetCartItems() public method

public GetCartItems ( ) : IEnumerable
return IEnumerable

GetLineItem() public method

public GetLineItem ( string stringcodeItem ) : LineItem
stringcodeItem string
return LineItem

GetLineItemPrice() public method

public GetLineItemPrice ( string code ) : decimal
code string
return decimal

GetNumberOfItemsInCart() public method

public GetNumberOfItemsInCart ( ) : decimal
return decimal

GetTotalPrice() public method

public GetTotalPrice ( ) : decimal
return decimal

RemoveItemFromCart() public method

public RemoveItemFromCart ( string code ) : void
code string
return void

getCart() public method

public getCart ( ) : Cart
return Cart

Property Details

totalPrice public_oe property

public decimal totalPrice
return decimal