C# Class ModernWebStore.Infra.Repositories.ProductRepository

Inheritance: IProductRepository
ファイルを表示 Open project: andrebaltieri/mwa-api

Public Methods

Method Description
Create ( Product product ) : void
Delete ( Product product ) : void
Get ( ) : List
Get ( int skip, int take ) : List
Get ( int id ) : Product
GetProductsInStock ( ) : List
GetProductsOutOfStock ( ) : List
ProductRepository ( StoreDataContext context ) : System.Collections.Generic
Update ( Product product ) : void

Method Details

Create() public method

public Create ( Product product ) : void
product ModernWebStore.Domain.Entities.Product
return void

Delete() public method

public Delete ( Product product ) : void
product ModernWebStore.Domain.Entities.Product
return void

Get() public method

public Get ( ) : List
return List

Get() public method

public Get ( int skip, int take ) : List
skip int
take int
return List

Get() public method

public Get ( int id ) : Product
id int
return ModernWebStore.Domain.Entities.Product

GetProductsInStock() public method

public GetProductsInStock ( ) : List
return List

GetProductsOutOfStock() public method

public GetProductsOutOfStock ( ) : List
return List

ProductRepository() public method

public ProductRepository ( StoreDataContext context ) : System.Collections.Generic
context ModernWebStore.Infra.Persistence.DataContexts.StoreDataContext
return System.Collections.Generic

Update() public method

public Update ( Product product ) : void
product ModernWebStore.Domain.Entities.Product
return void