C# Class EGSW.Services.CustomerService

Inheritance: ICustomerService
Afficher le fichier Open project: careerengine/EGSW-Project

Méthodes publiques

Méthode Description
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

Method Details

CustomerService() public méthode

public CustomerService ( IDbContext context, IRepository customerRepository, IRepository customerRoleRepository, IRepository contactUsRepository ) : System
context IDbContext
customerRepository IRepository
customerRoleRepository IRepository
contactUsRepository IRepository
Résultat System

GetAllCustomerRoles() public méthode

public GetAllCustomerRoles ( bool showHidden = false ) : IList
showHidden bool
Résultat IList

GetAllCustomers() public méthode

public GetAllCustomers ( int customerRoleIds = null ) : IList
customerRoleIds int
Résultat IList

GetAllCustomers() public méthode

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
Résultat PagedList.IPagedList

GetCustomerByEmail() public méthode

Get customer by email
public GetCustomerByEmail ( string email ) : Customer
email string Email
Résultat EGSW.Data.Customer

GetCustomerByGuid() public méthode

Gets a customer by GUID
public GetCustomerByGuid ( System.Guid customerGuid ) : Customer
customerGuid System.Guid Customer GUID
Résultat EGSW.Data.Customer

GetCustomerById() public méthode

public GetCustomerById ( int customerId ) : Customer
customerId int
Résultat EGSW.Data.Customer

GetCustomerBySystemName() public méthode

Get customer by system name
public GetCustomerBySystemName ( string systemName ) : Customer
systemName string System name
Résultat EGSW.Data.Customer

GetCustomerRoleBySystemName() public méthode

Gets a customer role
public GetCustomerRoleBySystemName ( string systemName ) : CustomerRole
systemName string Customer role system name
Résultat EGSW.Data.CustomerRole

InsertContactUs() public méthode

public InsertContactUs ( ContactU contactUs ) : void
contactUs EGSW.Data.ContactU
Résultat void

InsertCustomer() public méthode

Insert a customer
public InsertCustomer ( Customer customer ) : void
customer EGSW.Data.Customer Customer
Résultat void

InsertGuestCustomer() public méthode

Insert a guest customer
public InsertGuestCustomer ( ) : Customer
Résultat EGSW.Data.Customer

RegisterCustomer() public méthode

Register customer
public RegisterCustomer ( CustomerRegistrationRequest request ) : CustomerRegistrationResult
request CustomerRegistrationRequest Request
Résultat CustomerRegistrationResult

UpdateCustomer() public méthode

Updates the customer
public UpdateCustomer ( Customer customer ) : void
customer EGSW.Data.Customer Customer
Résultat void

ValidateCustomer() public méthode

public ValidateCustomer ( string usernameOrEmail, string password ) : CustomerLoginResults
usernameOrEmail string
password string
Résultat CustomerLoginResults