C# Class ModernWebStore.ApplicationService.ProductApplicationService

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

Public Methods

Method Description
Create ( CreateProductCommand command ) : Product
Delete ( int id ) : Product
Get ( ) : List
Get ( int skip, int take ) : List
Get ( int id ) : Product
GetOutOfStock ( ) : List
ProductApplicationService ( IProductRepository repository, IUnitOfWork unitOfWork ) : System.Collections.Generic
UpdateBasicInformation ( UpdateProductInfoCommand command ) : Product

Method Details

Create() public method

public Create ( CreateProductCommand command ) : Product
command ModernWebStore.Domain.Commands.ProductCommands.CreateProductCommand
return ModernWebStore.Domain.Entities.Product

Delete() public method

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

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

GetOutOfStock() public method

public GetOutOfStock ( ) : List
return List

ProductApplicationService() public method

public ProductApplicationService ( IProductRepository repository, IUnitOfWork unitOfWork ) : System.Collections.Generic
repository IProductRepository
unitOfWork IUnitOfWork
return System.Collections.Generic

UpdateBasicInformation() public method

public UpdateBasicInformation ( UpdateProductInfoCommand command ) : Product
command ModernWebStore.Domain.Commands.ProductCommands.UpdateProductInfoCommand
return ModernWebStore.Domain.Entities.Product