forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccountService.cs
More file actions
37 lines (31 loc) · 1.07 KB
/
Copy pathAccountService.cs
File metadata and controls
37 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System.Collections.Generic;
using L2dotNET.DataContracts;
using L2dotNET.Repositories.Contracts;
using L2dotNET.Services.Contracts;
namespace L2dotNET.Services
{
public class AccountService : IAccountService
{
private readonly IUnitOfWork _unitOfWork;
public AccountService(IUnitOfWork unitOfWork)
{
_unitOfWork = unitOfWork;
}
public AccountContract GetAccountByLogin(string login)
{
return _unitOfWork.AccountRepository.GetAccountByLogin(login);
}
public AccountContract CreateAccount(string login, string password)
{
return _unitOfWork.AccountRepository.CreateAccount(login, password);
}
public bool CheckIfAccountIsCorrect(string login, string password)
{
return _unitOfWork.AccountRepository.CheckIfAccountIsCorrect(login, password);
}
public List<int> GetPlayerIdsListByAccountName(string login)
{
return _unitOfWork.AccountRepository.GetPlayerIdsListByAccountName(login);
}
}
}