C# Class Kaffeplaneten.DAL.ProductDAL

Inheritance: IProductDAL
Afficher le fichier Open project: chrban/Webapplikasjoner Class Usage Examples

Méthodes publiques

Méthode Description
Delete ( int id ) : bool
ProductDAL ( ) : System
add ( ProductModel productModel ) : bool
find ( int id ) : ProductModel
getAllProducts ( ) : List
update ( ProductModel _productModel ) : bool
updateQuantity ( ProductModel productModel ) : bool

Method Details

Delete() public méthode

public Delete ( int id ) : bool
id int
Résultat bool

ProductDAL() public méthode

public ProductDAL ( ) : System
Résultat System

add() public méthode

public add ( ProductModel productModel ) : bool
productModel Kaffeplaneten.Models.ProductModel
Résultat bool

find() public méthode

public find ( int id ) : ProductModel
id int
Résultat Kaffeplaneten.Models.ProductModel

getAllProducts() public méthode

public getAllProducts ( ) : List
Résultat List

update() public méthode

public update ( ProductModel _productModel ) : bool
_productModel Kaffeplaneten.Models.ProductModel
Résultat bool

updateQuantity() public méthode

public updateQuantity ( ProductModel productModel ) : bool
productModel Kaffeplaneten.Models.ProductModel
Résultat bool