C# Class BAL.Interfaces.OrderManagerEx

Inheritance: BAL.Manager.BaseManager, IOrderManagerEx
Mostrar archivo Open project: CH033dotNET/Taxi Class Usage Examples

Public Methods

Method Description
AddOrder ( OrderExDTO order ) : OrderExDTO
ApproveOrder ( int id ) : bool
CancelOrder ( int id ) : bool
DenyOrder ( int id ) : bool
FinishOrder ( int id, decimal price ) : bool
GetApprovedOrders ( ) : IEnumerable
GetById ( int id ) : OrderExDTO
GetCurrentDriverOrder ( int driverId ) : OrderExDTO
GetDriversTodayOrders ( UserDTO Driver ) : IList
GetFinishedOrders ( ) : IEnumerable
GetInProgressOrders ( ) : IEnumerable
GetLastDeniedOrders ( ) : IEnumerable
GetNotApprovedOrders ( ) : IEnumerable
GetOrdersByDriver ( UserDTO Driver ) : IEnumerable
GetOrdersByUserId ( int id ) : IEnumerable
OrderManagerEx ( IUnitOfWork uOW ) : System
SetClientFeedback ( int orderId, int feedbackId ) : void
SetDriverFeedback ( int orderId, int feedbackId ) : void
SetWaitingTime ( int id, int WaitingTime ) : bool
TakeOrder ( int id, int DriverId ) : bool
UpdateOrder ( OrderExDTO order ) : void

Method Details

AddOrder() public method

public AddOrder ( OrderExDTO order ) : OrderExDTO
order Model.DTO.OrderExDTO
return Model.DTO.OrderExDTO

ApproveOrder() public method

public ApproveOrder ( int id ) : bool
id int
return bool

CancelOrder() public method

public CancelOrder ( int id ) : bool
id int
return bool

DenyOrder() public method

public DenyOrder ( int id ) : bool
id int
return bool

FinishOrder() public method

public FinishOrder ( int id, decimal price ) : bool
id int
price decimal
return bool

GetApprovedOrders() public method

public GetApprovedOrders ( ) : IEnumerable
return IEnumerable

GetById() public method

public GetById ( int id ) : OrderExDTO
id int
return Model.DTO.OrderExDTO

GetCurrentDriverOrder() public method

public GetCurrentDriverOrder ( int driverId ) : OrderExDTO
driverId int
return Model.DTO.OrderExDTO

GetDriversTodayOrders() public method

public GetDriversTodayOrders ( UserDTO Driver ) : IList
Driver UserDTO
return IList

GetFinishedOrders() public method

public GetFinishedOrders ( ) : IEnumerable
return IEnumerable

GetInProgressOrders() public method

public GetInProgressOrders ( ) : IEnumerable
return IEnumerable

GetLastDeniedOrders() public method

public GetLastDeniedOrders ( ) : IEnumerable
return IEnumerable

GetNotApprovedOrders() public method

public GetNotApprovedOrders ( ) : IEnumerable
return IEnumerable

GetOrdersByDriver() public method

public GetOrdersByDriver ( UserDTO Driver ) : IEnumerable
Driver UserDTO
return IEnumerable

GetOrdersByUserId() public method

public GetOrdersByUserId ( int id ) : IEnumerable
id int
return IEnumerable

OrderManagerEx() public method

public OrderManagerEx ( IUnitOfWork uOW ) : System
uOW IUnitOfWork
return System

SetClientFeedback() public method

public SetClientFeedback ( int orderId, int feedbackId ) : void
orderId int
feedbackId int
return void

SetDriverFeedback() public method

public SetDriverFeedback ( int orderId, int feedbackId ) : void
orderId int
feedbackId int
return void

SetWaitingTime() public method

public SetWaitingTime ( int id, int WaitingTime ) : bool
id int
WaitingTime int
return bool

TakeOrder() public method

public TakeOrder ( int id, int DriverId ) : bool
id int
DriverId int
return bool

UpdateOrder() public method

public UpdateOrder ( OrderExDTO order ) : void
order Model.DTO.OrderExDTO
return void