C# Class DAL.Services.UserService

Show file Open project: kulish-alina/HR_Project Class Usage Examples

Public Methods

Method Description
Add ( UserDTO userToAdd ) : UserDTO
Authentificate ( string login, string password ) : UserDTO

Perfoms accessing to user of specified login and password

AuthentificateAsync ( string login, string password ) : Task

Perfoms accessing to user of specified login and password async

Delete ( int id ) : bool
Get ( int id ) : UserDTO
Get ( object searchParameters ) : object
Update ( UserDTO entity ) : UserDTO
UserService ( IUnitOfWork uow ) : DAL.DTO

Method Details

Add() public method

public Add ( UserDTO userToAdd ) : UserDTO
userToAdd UserDTO
return UserDTO

Authentificate() public method

Perfoms accessing to user of specified login and password
Is thrown, when there is no user with such a login and password
public Authentificate ( string login, string password ) : UserDTO
login string Application user login
password string User password (hashed)
return UserDTO

AuthentificateAsync() public method

Perfoms accessing to user of specified login and password async
Is thrown, when there is no user with such a login and password
public AuthentificateAsync ( string login, string password ) : Task
login string Application user login
password string User password (hashed)
return Task

Delete() public method

public Delete ( int id ) : bool
id int
return bool

Get() public method

public Get ( int id ) : UserDTO
id int
return UserDTO

Get() public method

public Get ( object searchParameters ) : object
searchParameters object
return object

Update() public method

public Update ( UserDTO entity ) : UserDTO
entity UserDTO
return UserDTO

UserService() public method

public UserService ( IUnitOfWork uow ) : DAL.DTO
uow IUnitOfWork
return DAL.DTO