laatzen/LaaProductionWeb/LaaProduction.Personalization/Models/Employee.cs
2023-06-22 14:04:12 +02:00

33 lines
799 B
C#

namespace LaaProduction.Personalization.Models
{
using System.Collections.Generic;
internal class Employee
{
public short EmployeeId { get; set; }
public string FullName { get; set; }
public string Username { get; set; }
public bool HasPassword { get; set; }
public int RolesCount { get; set; }
public IEnumerable<string> Roles { get; set; }
public int FunctionsCount { get; set; }
public IEnumerable<string> Functions { get; set; }
}
internal class EmployeeComparer : IEqualityComparer<Employee>
{
public bool Equals(Employee x, Employee y)
=> x?.EmployeeId == y?.EmployeeId;
public int GetHashCode(Employee obj)
=> obj?.EmployeeId ?? default(int);
}
}