Метод | Описание | |
---|---|---|
CustomerService ( IDbContext context, IRepository |
||
GetAllCustomerRoles ( bool showHidden = false ) : IList |
||
GetAllCustomers ( int customerRoleIds = null ) : IList |
||
GetAllCustomers ( int customerId = null, string firstName = null, string lastName = null, string customerEmail = null, string zipCode = null, int pageIndex, int pageSize = int.MaxValue, int customerRoleIds = null ) : PagedList.IPagedList |
||
GetCustomerByEmail ( string email ) : |
Get customer by email
|
|
GetCustomerByGuid ( System.Guid customerGuid ) : |
Gets a customer by GUID
|
|
GetCustomerById ( int customerId ) : |
||
GetCustomerBySystemName ( string systemName ) : |
Get customer by system name
|
|
GetCustomerRoleBySystemName ( string systemName ) : |
Gets a customer role
|
|
InsertContactUs ( |
||
InsertCustomer ( |
Insert a customer
|
|
InsertGuestCustomer ( ) : |
Insert a guest customer
|
|
RegisterCustomer ( |
Register customer
|
|
UpdateCustomer ( |
Updates the customer
|
|
ValidateCustomer ( string usernameOrEmail, string password ) : CustomerLoginResults |
public CustomerService ( IDbContext context, IRepository |
||
context | IDbContext | |
customerRepository | IRepository |
|
customerRoleRepository | IRepository |
|
contactUsRepository | IRepository |
|
Результат | System |
public GetAllCustomerRoles ( bool showHidden = false ) : IList |
||
showHidden | bool | |
Результат | IList |
public GetAllCustomers ( int customerRoleIds = null ) : IList |
||
customerRoleIds | int | |
Результат | IList |
public GetAllCustomers ( int customerId = null, string firstName = null, string lastName = null, string customerEmail = null, string zipCode = null, int pageIndex, int pageSize = int.MaxValue, int customerRoleIds = null ) : PagedList.IPagedList |
||
customerId | int | |
firstName | string | |
lastName | string | |
customerEmail | string | |
zipCode | string | |
pageIndex | int | |
pageSize | int | |
customerRoleIds | int | |
Результат | PagedList.IPagedList |
public GetCustomerByEmail ( string email ) : |
||
string | ||
Результат |
public GetCustomerByGuid ( System.Guid customerGuid ) : |
||
customerGuid | System.Guid | Customer GUID |
Результат |
public GetCustomerById ( int customerId ) : |
||
customerId | int | |
Результат |
public GetCustomerBySystemName ( string systemName ) : |
||
systemName | string | System name |
Результат |
public GetCustomerRoleBySystemName ( string systemName ) : |
||
systemName | string | Customer role system name |
Результат |
public InsertContactUs ( |
||
contactUs | ||
Результат | void |
public InsertCustomer ( |
||
customer | Customer | |
Результат | void |
public InsertGuestCustomer ( ) : |
||
Результат |
public RegisterCustomer ( |
||
request | Request | |
Результат |
public UpdateCustomer ( |
||
customer | Customer | |
Результат | void |
public ValidateCustomer ( string usernameOrEmail, string password ) : CustomerLoginResults | ||
usernameOrEmail | string | |
password | string | |
Результат | CustomerLoginResults |