C# Class WebUI.Services.Auth.UserAccountService

Service for managing user and its session
Inheritance: IAccountService
Datei anzeigen Open project: kulish-alina/HR_Project

Public Methods

Method Description
GetUser ( string token ) : UserDTO
LogInAsync ( string login, string password ) : string>>.Task

Logs user into the application and registers new session for they.

Register ( UserDTO model ) : UserDTO

Registers user with provided data

UserAccountService ( UserService userService, RoleService roleService, IAuthContainer authContainer ) : DAL.DTO

Private Methods

Method Description
LogOut ( string token ) : bool

Method Details

GetUser() public method

public GetUser ( string token ) : UserDTO
token string
return DAL.DTO.UserDTO

LogInAsync() public method

Logs user into the application and registers new session for they.
public LogInAsync ( string login, string password ) : string>>.Task
login string User login
password string User password
return string>>.Task

Register() public method

Registers user with provided data
public Register ( UserDTO model ) : UserDTO
model DAL.DTO.UserDTO User data
return DAL.DTO.UserDTO

UserAccountService() public method

public UserAccountService ( UserService userService, RoleService roleService, IAuthContainer authContainer ) : DAL.DTO
userService DAL.Services.UserService
roleService RoleService
authContainer IAuthContainer
return DAL.DTO