C# 클래스 EGSW.Services.CustomerService

상속: ICustomerService
파일 보기 프로젝트 열기: careerengine/EGSW-Project

공개 메소드들

메소드 설명
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