C# Class Acme.Biz.Vendor

Manages the vendors from whom we purchase our inventory.
Mostra file Open project: DeborahK/CSharpBP-Collections Class Usage Examples

Public Methods

Method Description
PlaceOrder ( Product product, int quantity, DateTimeOffset deliverBy = null, string instructions = "standard delivery" ) : Acme.Common.OperationResult

Sends a product order to the vendor.

SendWelcomeEmail ( string message ) : string

Sends an email to welcome a new vendor.

ToString ( ) : string

Method Details

PlaceOrder() public method

Sends a product order to the vendor.
public PlaceOrder ( Product product, int quantity, DateTimeOffset deliverBy = null, string instructions = "standard delivery" ) : Acme.Common.OperationResult
product Product Product to order.
quantity int Quantity of the product to order.
deliverBy DateTimeOffset Requested delivery date.
instructions string Delivery instructions.
return Acme.Common.OperationResult

SendWelcomeEmail() public method

Sends an email to welcome a new vendor.
public SendWelcomeEmail ( string message ) : string
message string
return string

ToString() public method

public ToString ( ) : string
return string