laatzen/LaaProductionWeb/LaaProduction.Personalization/Models/Employee.cs
2024-09-18 15:36:12 +02:00

34 lines
827 B
C#

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