C# Class DAL.Services.UserService

Afficher le fichier Open project: kulish-alina/HR_Project Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Add ( UserDTO userToAdd ) : UserDTO
userToAdd UserDTO
Résultat UserDTO

Authentificate() public méthode

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)
Résultat UserDTO

AuthentificateAsync() public méthode

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)
Résultat Task

Delete() public méthode

public Delete ( int id ) : bool
id int
Résultat bool

Get() public méthode

public Get ( int id ) : UserDTO
id int
Résultat UserDTO

Get() public méthode

public Get ( object searchParameters ) : object
searchParameters object
Résultat object

Update() public méthode

public Update ( UserDTO entity ) : UserDTO
entity UserDTO
Résultat UserDTO

UserService() public méthode

public UserService ( IUnitOfWork uow ) : DAL.DTO
uow IUnitOfWork
Résultat DAL.DTO