laatzen/LaaProductionWeb/LaaProduction.Personalization/Repositories/Interfaces/IEmployeesRepository.cs
2024-02-20 12:17:07 +01:00

38 lines
1.1 KiB
C#

namespace LaaProduction.Personalization.Repositories.Interfaces
{
using LaaProduction.Personalization.Models;
using System.Collections.Generic;
internal interface IEmployeesRepository
{
IEnumerable<Employee> All();
void CreateToken(short appId, short userId);
short FindEmployeeNr(int employeeId);
short FindEmployeeNr(string username, string password);
Employee Find(short employeeId);
Employee GetEmployee(string token);
string GetToken(short appId, short userId);
EmployeeToken GetTokenData(string token);
IEnumerable<string> GetUserRoles(string token);
short Insert(int employeeId, string firstName, string lastName, string phone, string email, string username, string domainname, string password);
void ResetPassword(short employeeId);
void ResetTokens(short employeeId);
bool SetPassword(short employeeId, string password);
short Update(int employeeId, string firstName, string lastName, string phone, string email, string username, string domainname, string password);
}
}