C# Class Kaffeplaneten.BLL.ProductBLL

Show file Open project: chrban/Webapplikasjoner Class Usage Examples

Public Methods

Method Description
ProductBLL ( ) : System
ProductBLL ( IProductDAL iProductDAL ) : System
add ( ProductModel productModel ) : bool
delete ( int id ) : bool
find ( int id ) : ProductModel
getAllProducts ( ) : List
update ( ProductModel productModel ) : bool
updateQuantity ( ProductModel productModel ) : bool

Method Details

ProductBLL() public method

public ProductBLL ( ) : System
return System

ProductBLL() public method

public ProductBLL ( IProductDAL iProductDAL ) : System
iProductDAL IProductDAL
return System

add() public method

public add ( ProductModel productModel ) : bool
productModel Kaffeplaneten.Models.ProductModel
return bool

delete() public method

public delete ( int id ) : bool
id int
return bool

find() public method

public find ( int id ) : ProductModel
id int
return Kaffeplaneten.Models.ProductModel

getAllProducts() public method

public getAllProducts ( ) : List
return List

update() public method

public update ( ProductModel productModel ) : bool
productModel Kaffeplaneten.Models.ProductModel
return bool

updateQuantity() public method

public updateQuantity ( ProductModel productModel ) : bool
productModel Kaffeplaneten.Models.ProductModel
return bool