Design Pattern Framework 3.5
DeleteCustomer Method (customerId)
Patterns-In-Action! Application ► ASPNETWebApplication.Controllers ► CustomerController ► DeleteCustomer(Int32)
Deletes a customer from the database. A customer can only be deleted if no orders were placed.
Declaration Syntax
Parameters
- customerId (Int32)
- Unique customer identifier.
Return Value
Number of orders deleted.