laatzen/LaaProductionWeb/LaaProduction.Personalization/Models/Employee.cs
Stoyan Zlatev e32e553bfc clr types
2024-12-18 15:25:14 +01:00

34 lines
813 B
C#

namespace LaaProduction.Personalization.Models
{
using System;
using System.Collections.Generic;
public 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; }
}
public class EmployeeComparer : IEqualityComparer<Employee>
{
public bool Equals(Employee x, Employee y)
=> x?.EmployeeId == y?.EmployeeId;
public int GetHashCode(Employee obj)
=> obj?.EmployeeId ?? default(int);
}
}