C# Класс EGSW.Services.CustomerService

Наследование: ICustomerService
Показать файл Открыть проект

Открытые методы

Метод Описание
CustomerService ( IDbContext context, IRepository customerRepository, IRepository customerRoleRepository, IRepository contactUsRepository ) : System
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 ) : Customer

Get customer by email

GetCustomerByGuid ( System.Guid customerGuid ) : Customer

Gets a customer by GUID

GetCustomerById ( int customerId ) : Customer
GetCustomerBySystemName ( string systemName ) : Customer

Get customer by system name

GetCustomerRoleBySystemName ( string systemName ) : CustomerRole

Gets a customer role

InsertContactUs ( ContactU contactUs ) : void
InsertCustomer ( Customer customer ) : void

Insert a customer

InsertGuestCustomer ( ) : Customer

Insert a guest customer

RegisterCustomer ( CustomerRegistrationRequest request ) : CustomerRegistrationResult

Register customer

UpdateCustomer ( Customer customer ) : void

Updates the customer

ValidateCustomer ( string usernameOrEmail, string password ) : CustomerLoginResults

Описание методов

CustomerService() публичный Метод

public CustomerService ( IDbContext context, IRepository customerRepository, IRepository customerRoleRepository, IRepository contactUsRepository ) : System
context IDbContext
customerRepository IRepository
customerRoleRepository IRepository
contactUsRepository IRepository
Результат System

GetAllCustomerRoles() публичный Метод

public GetAllCustomerRoles ( bool showHidden = false ) : IList
showHidden bool
Результат IList

GetAllCustomers() публичный Метод

public GetAllCustomers ( int customerRoleIds = null ) : IList
customerRoleIds int
Результат IList

GetAllCustomers() публичный Метод

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

GetCustomerByEmail() публичный Метод

Get customer by email
public GetCustomerByEmail ( string email ) : Customer
email string Email
Результат EGSW.Data.Customer

GetCustomerByGuid() публичный Метод

Gets a customer by GUID
public GetCustomerByGuid ( System.Guid customerGuid ) : Customer
customerGuid System.Guid Customer GUID
Результат EGSW.Data.Customer

GetCustomerById() публичный Метод

public GetCustomerById ( int customerId ) : Customer
customerId int
Результат EGSW.Data.Customer

GetCustomerBySystemName() публичный Метод

Get customer by system name
public GetCustomerBySystemName ( string systemName ) : Customer
systemName string System name
Результат EGSW.Data.Customer

GetCustomerRoleBySystemName() публичный Метод

Gets a customer role
public GetCustomerRoleBySystemName ( string systemName ) : CustomerRole
systemName string Customer role system name
Результат EGSW.Data.CustomerRole

InsertContactUs() публичный Метод

public InsertContactUs ( ContactU contactUs ) : void
contactUs EGSW.Data.ContactU
Результат void

InsertCustomer() публичный Метод

Insert a customer
public InsertCustomer ( Customer customer ) : void
customer EGSW.Data.Customer Customer
Результат void

InsertGuestCustomer() публичный Метод

Insert a guest customer
public InsertGuestCustomer ( ) : Customer
Результат EGSW.Data.Customer

RegisterCustomer() публичный Метод

Register customer
public RegisterCustomer ( CustomerRegistrationRequest request ) : CustomerRegistrationResult
request CustomerRegistrationRequest Request
Результат CustomerRegistrationResult

UpdateCustomer() публичный Метод

Updates the customer
public UpdateCustomer ( Customer customer ) : void
customer EGSW.Data.Customer Customer
Результат void

ValidateCustomer() публичный Метод

public ValidateCustomer ( string usernameOrEmail, string password ) : CustomerLoginResults
usernameOrEmail string
password string
Результат CustomerLoginResults