C# Class EGSW.Web.Areas.Admin.Controllers.CustomerController

Inheritance: BaseAdminController
Show file Open project: careerengine/EGSW-Project

Public Methods

Method Description
AgentList ( int page ) : System.Web.Mvc.ActionResult
CreateCustomer ( ) : System.Web.Mvc.ActionResult
CustomerController ( ICustomerService customerService, IWorkContext workContext, IOrderService orderService ) : System
EditCustomer ( int Id ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
List ( string FirstName, string LastName, string CustomerEmail, string ZipCode, int customerId, int page ) : System.Web.Mvc.ActionResult

Protected Methods

Method Description
PrepareAverageRatingForUser ( CustomerModel model, string role ) : void

Private Methods

Method Description
ChangePassword ( CustomerModel model ) : System.Web.Mvc.ActionResult
CreateCustomer ( CustomerModel model ) : System.Web.Mvc.ActionResult
EditCustomer ( CustomerModel model ) : System.Web.Mvc.ActionResult
PrepareCustomerModel ( CustomerModel model, Customer customer, bool excludeProperties ) : void

Method Details

AgentList() public method

public AgentList ( int page ) : System.Web.Mvc.ActionResult
page int
return System.Web.Mvc.ActionResult

CreateCustomer() public method

public CreateCustomer ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

CustomerController() public method

public CustomerController ( ICustomerService customerService, IWorkContext workContext, IOrderService orderService ) : System
customerService ICustomerService
workContext IWorkContext
orderService IOrderService
return System

EditCustomer() public method

public EditCustomer ( int Id ) : System.Web.Mvc.ActionResult
Id int
return System.Web.Mvc.ActionResult

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

List() public method

public List ( string FirstName, string LastName, string CustomerEmail, string ZipCode, int customerId, int page ) : System.Web.Mvc.ActionResult
FirstName string
LastName string
CustomerEmail string
ZipCode string
customerId int
page int
return System.Web.Mvc.ActionResult

PrepareAverageRatingForUser() protected method

protected PrepareAverageRatingForUser ( CustomerModel model, string role ) : void
model EGSW.Web.Areas.Admin.Models.Customers.CustomerModel
role string
return void