C# Class Infrastructure.OrderRepository

Show file Open project: rapPayne/WebGoat.Net Class Usage Examples

Public Methods

Method Description
CreateOrder ( List OrderDetails, string CustomerId, decimal Freight, int ShipVia, string ShipName, string ShipAddress, string ShipCity, string ShipRegion, string ShipPostalCode, string ShipCountry ) : int
CreateOrder ( Core.Order Order ) : int
CreateOrderPayment ( int OrderId, Decimal AmountPaid, string CreditCardNumber, System.DateTime ExpirationDate, string ApprovalCode ) : void
GetAllOrdersByCustomerId ( string CustomerId ) : ICollection
GetOrderById ( int OrderId ) : Core.Order
GetShipmentByOrderId ( int OrderId ) : Core.Shipment
OrderRepository ( ) : System
UpdateOrder ( Core.Order Order ) : void

Method Details

CreateOrder() public method

public CreateOrder ( List OrderDetails, string CustomerId, decimal Freight, int ShipVia, string ShipName, string ShipAddress, string ShipCity, string ShipRegion, string ShipPostalCode, string ShipCountry ) : int
OrderDetails List
CustomerId string
Freight decimal
ShipVia int
ShipName string
ShipAddress string
ShipCity string
ShipRegion string
ShipPostalCode string
ShipCountry string
return int

CreateOrder() public method

public CreateOrder ( Core.Order Order ) : int
Order Core.Order
return int

CreateOrderPayment() public method

public CreateOrderPayment ( int OrderId, Decimal AmountPaid, string CreditCardNumber, System.DateTime ExpirationDate, string ApprovalCode ) : void
OrderId int
AmountPaid Decimal
CreditCardNumber string
ExpirationDate System.DateTime
ApprovalCode string
return void

GetAllOrdersByCustomerId() public method

public GetAllOrdersByCustomerId ( string CustomerId ) : ICollection
CustomerId string
return ICollection

GetOrderById() public method

public GetOrderById ( int OrderId ) : Core.Order
OrderId int
return Core.Order

GetShipmentByOrderId() public method

public GetShipmentByOrderId ( int OrderId ) : Core.Shipment
OrderId int
return Core.Shipment

OrderRepository() public method

public OrderRepository ( ) : System
return System

UpdateOrder() public method

public UpdateOrder ( Core.Order Order ) : void
Order Core.Order
return void