C# 클래스 Infrastructure.OrderRepository

파일 보기 프로젝트 열기: rapPayne/WebGoat.Net 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CreateOrder() 공개 메소드

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
리턴 int

CreateOrder() 공개 메소드

public CreateOrder ( Core.Order Order ) : int
Order Core.Order
리턴 int

CreateOrderPayment() 공개 메소드

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
리턴 void

GetAllOrdersByCustomerId() 공개 메소드

public GetAllOrdersByCustomerId ( string CustomerId ) : ICollection
CustomerId string
리턴 ICollection

GetOrderById() 공개 메소드

public GetOrderById ( int OrderId ) : Core.Order
OrderId int
리턴 Core.Order

GetShipmentByOrderId() 공개 메소드

public GetShipmentByOrderId ( int OrderId ) : Core.Shipment
OrderId int
리턴 Core.Shipment

OrderRepository() 공개 메소드

public OrderRepository ( ) : System
리턴 System

UpdateOrder() 공개 메소드

public UpdateOrder ( Core.Order Order ) : void
Order Core.Order
리턴 void