Design Pattern Framework 3.5
CustomerController Class
Patterns-In-Action! Application ► ASPNETWebApplication.Controllers ► CustomerController
Controller for customer related objects.
Declaration Syntax
C# | Visual Basic |
public class CustomerController : ControllerBase
Public Class CustomerController _ Inherits ControllerBase
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
CustomerController()()() |
Initializes a new instance of the CustomerController class
|
|
AccessToken |
Gets or sets access token. If no token exists a new one is retrieved from service.
(Inherited from ControllerBase.) |
|
ActionServiceClient |
Lazy loads ActionServiceClient and stores it in Session object.
(Inherited from ControllerBase.) |
|
AddCustomer(Customer) |
Adds a new customer to the database
|
|
DeleteCustomer(Int32) |
Deletes a customer from the database. A customer can only be deleted if no orders were placed.
|
|
Equals(Object) | (Inherited from Object.) |
|
Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
|
GetCustomer(Int32) |
Gets a specific customer record.
|
|
GetCustomers(String) |
Gets a list of customers.
|
|
GetCustomersWithOrderStatistics(String) |
Gets list of customers, each of which contains order statistics.
|
|
GetCustomerWithOrders(Int32) |
Get customer object with all its orders.
|
|
GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) |
|
MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
NewRequestId |
Gets a new random GUID request id.
(Inherited from ControllerBase.) |
|
ToString()()() | (Inherited from Object.) |
|
UpdateCustomer(Customer) |
Updates a customer in the database.
|
Remarks
MV Patterns: Model View Controller Pattern.
This is a 'loose' implementation of the MVC pattern.
Inheritance Hierarchy
Object | ||
ControllerBase | ||
CustomerController |