DeleteCustomer Method (customerId)

Design Pattern Framework 3.5

Design Pattern Framework 3.5 DeleteCustomer Method (customerId)
Patterns-In-Action! ApplicationASPNETWebApplication.ControllersCustomerControllerDeleteCustomer(Int32)
Deletes a customer from the database. A customer can only be deleted if no orders were placed.
Declaration Syntax
C# Visual Basic
public int DeleteCustomer(
	int customerId
)
Public Function DeleteCustomer ( _
	customerId As Integer _
) As Integer
Parameters
customerId (Int32)
Unique customer identifier.
Return Value
Number of orders deleted.

Assembly: ASPNETWebApplication (Module: ASPNETWebApplication) Version: 1.0.0.0 (1.0.0.0)