C# Class ModernWebStore.ApplicationService.CategoryApplicationService

Inheritance: ApplicationService, ICategoryApplicationService
显示文件 Open project: andrebaltieri/mwa-api

Public Methods

Method Description
CategoryApplicationService ( ICategoryRepository repository, IUnitOfWork unitOfWork ) : System
Create ( CreateCategoryCommand command ) : Category
Delete ( int id ) : Category
Get ( int id ) : Category
Get ( ) : List
Get ( int skip, int take ) : List
Update ( EditCategoryCommand command ) : Category

Method Details

CategoryApplicationService() public method

public CategoryApplicationService ( ICategoryRepository repository, IUnitOfWork unitOfWork ) : System
repository ICategoryRepository
unitOfWork IUnitOfWork
return System

Create() public method

public Create ( CreateCategoryCommand command ) : Category
command ModernWebStore.Domain.Commands.CategoryCommands.CreateCategoryCommand
return ModernWebStore.Domain.Entities.Category

Delete() public method

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

Get() public method

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

Get() public method

public Get ( ) : List
return List

Get() public method

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

Update() public method

public Update ( EditCategoryCommand command ) : Category
command ModernWebStore.Domain.Commands.CategoryCommands.EditCategoryCommand
return ModernWebStore.Domain.Entities.Category