Method | Description | |
---|---|---|
DeleteUser ( int id ) : bool |
Delete a user
|
|
FindUserById ( int id ) : User | ||
FindUserByUserName ( string userName ) : User | ||
GetAllUsers ( ) : IList |
||
GetAllUsersDto ( ) : IEnumerable |
Retrieve all users in the database
|
|
GetUserById ( int userId ) : UserDto |
Retrieve a user based on its ID
|
|
GetUserByUsername ( string username ) : UserDto |
Retrieve a user by username
|
|
LogoutUser ( int userId ) : UserDto |
Logs out a user
|
|
SaveOrUpdateUser ( User user ) : void | ||
UpdateUser ( UserDto userDto ) : UserServiceResult>.ServiceResult |
Update user
|
|
UserServices ( IDbContext dbContext, IMapper mapperEngine, ISecurityHelper securityHelper ) : System.Collections.Generic |
Constructor
|
public FindUserByUserName ( string userName ) : User | ||
userName | string | |
return | User |
public GetUserByUsername ( string username ) : UserDto | ||
username | string | Username |
return | UserDto |
public LogoutUser ( int userId ) : UserDto | ||
userId | int | ID of the user |
return | UserDto |
public UpdateUser ( UserDto userDto ) : UserServiceResult>.ServiceResult |
||
userDto | UserDto | |
return | UserServiceResult>.ServiceResult |
public UserServices ( IDbContext dbContext, IMapper mapperEngine, ISecurityHelper securityHelper ) : System.Collections.Generic | ||
dbContext | IDbContext | dbContext |
mapperEngine | IMapper | Mapper engine |
securityHelper | ISecurityHelper | Security helper |
return | System.Collections.Generic |