23 lines
570 B
C#
23 lines
570 B
C#
namespace LaaProductionWeb.Services.Models
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
public class Employee
|
|
{
|
|
public Employee(string name, IEnumerable<string> permissions)
|
|
{
|
|
this.Name = name;
|
|
this.IsValid = !string.IsNullOrWhiteSpace(name);
|
|
this.Permissions = permissions ?? Array.Empty<string>();
|
|
}
|
|
|
|
public string Name { get; set; }
|
|
|
|
public bool IsValid { get; }
|
|
|
|
public IEnumerable<string> Permissions { get; }
|
|
= Array.Empty<string>();
|
|
}
|
|
}
|