C# Class Membership.Service.EmployeeMembershipService

Inheritance: IEmployeeMembershipService
Exibir arquivo Open project: serdarb/Membership-Service

Public Methods

Method Description
AddAddress ( AddressDto dto ) : bool
AddPhone ( PhoneDto dto ) : bool
AuthEmployee ( string userName, string password ) : bool
ChangePasswordForEmployee ( string email, string newPasswordHash ) : bool
CreateEmployee ( EmployeeDto dto ) : int
DeleteEmployee ( EmployeeDto dto ) : bool
GetEmployee ( string email ) : EmployeeDto
GetEmployeeById ( int id ) : EmployeeDto
GetEmployeeIdByEmailorUserName ( string emailorUserName ) : int
GetEmployees ( ) : List
IsPasswordResetRequestValid ( string email, string guid ) : bool
RequestPasswordResetForEmployee ( string email ) : bool

Method Details

AddAddress() public method

public AddAddress ( AddressDto dto ) : bool
dto Membership.Contract.AddressDto
return bool

AddPhone() public method

public AddPhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
return bool

AuthEmployee() public method

public AuthEmployee ( string userName, string password ) : bool
userName string
password string
return bool

ChangePasswordForEmployee() public method

public ChangePasswordForEmployee ( string email, string newPasswordHash ) : bool
email string
newPasswordHash string
return bool

CreateEmployee() public method

public CreateEmployee ( EmployeeDto dto ) : int
dto Membership.Contract.EmployeeDto
return int

DeleteEmployee() public method

public DeleteEmployee ( EmployeeDto dto ) : bool
dto Membership.Contract.EmployeeDto
return bool

GetEmployee() public method

public GetEmployee ( string email ) : EmployeeDto
email string
return Membership.Contract.EmployeeDto

GetEmployeeById() public method

public GetEmployeeById ( int id ) : EmployeeDto
id int
return Membership.Contract.EmployeeDto

GetEmployeeIdByEmailorUserName() public method

public GetEmployeeIdByEmailorUserName ( string emailorUserName ) : int
emailorUserName string
return int

GetEmployees() public method

public GetEmployees ( ) : List
return List

IsPasswordResetRequestValid() public method

public IsPasswordResetRequestValid ( string email, string guid ) : bool
email string
guid string
return bool

RequestPasswordResetForEmployee() public method

public RequestPasswordResetForEmployee ( string email ) : bool
email string
return bool