C# Class PizzaApi.Domain.InMemoryOrderService

Inheritance: IOrderService
Show file Open project: tugberkugurlu/ProWebAPI.Samples

Public Methods

Method Description
Delete ( int id ) : void
Exists ( int id ) : bool
Get ( int id ) : Order
GetAll ( ) : IEnumerable
InMemoryOrderService ( IPricingService pricingService ) : System
Save ( Order order ) : void
Update ( Order order ) : void

Method Details

Delete() public method

public Delete ( int id ) : void
id int
return void

Exists() public method

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

Get() public method

public Get ( int id ) : Order
id int
return Order

GetAll() public method

public GetAll ( ) : IEnumerable
return IEnumerable

InMemoryOrderService() public method

public InMemoryOrderService ( IPricingService pricingService ) : System
pricingService IPricingService
return System

Save() public method

public Save ( Order order ) : void
order Order
return void

Update() public method

public Update ( Order order ) : void
order Order
return void