C# Class ModernWebStore.ApplicationService.OrderApplicationService

Inheritance: ApplicationService, IOrderApplicationService
Datei anzeigen Open project: andrebaltieri/mwa-api

Public Methods

Method Description
Cancel ( int id, string email ) : void
Create ( CreateOrderCommand command, string email ) : Order
Delivery ( int id, string email ) : void
Get ( string email, int skip, int take ) : List
GetCanceled ( string email ) : List
GetCreated ( string email ) : List
GetDelivered ( string email ) : List
GetDetails ( int id, string email ) : Order
GetPaid ( string email ) : List
OrderApplicationService ( IOrderRepository orderRepository, IUserRepository userRepository, IProductRepository productRepository, IUnitOfWork unitOfWork ) : System
Pay ( int id, string email ) : void

Method Details

Cancel() public method

public Cancel ( int id, string email ) : void
id int
email string
return void

Create() public method

public Create ( CreateOrderCommand command, string email ) : Order
command ModernWebStore.Domain.Commands.OrderCommands.CreateOrderCommand
email string
return ModernWebStore.Domain.Entities.Order

Delivery() public method

public Delivery ( int id, string email ) : void
id int
email string
return void

Get() public method

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

GetCanceled() public method

public GetCanceled ( string email ) : List
email string
return List

GetCreated() public method

public GetCreated ( string email ) : List
email string
return List

GetDelivered() public method

public GetDelivered ( string email ) : List
email string
return List

GetDetails() public method

public GetDetails ( int id, string email ) : Order
id int
email string
return ModernWebStore.Domain.Entities.Order

GetPaid() public method

public GetPaid ( string email ) : List
email string
return List

OrderApplicationService() public method

public OrderApplicationService ( IOrderRepository orderRepository, IUserRepository userRepository, IProductRepository productRepository, IUnitOfWork unitOfWork ) : System
orderRepository IOrderRepository
userRepository IUserRepository
productRepository IProductRepository
unitOfWork IUnitOfWork
return System

Pay() public method

public Pay ( int id, string email ) : void
id int
email string
return void