21 lines
480 B
C#
21 lines
480 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Entidades;
|
|
|
|
public partial class Permiso:IComponenteSeguridad
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string Descripcion { get; set; } = null!;
|
|
|
|
[JsonIgnore]
|
|
public virtual ICollection<Grupo> Idgrupos { get; set; } = new List<Grupo>();
|
|
|
|
public void ObtenerPermisos(HashSet<Permiso> permisos, HashSet<int> visitados)
|
|
{
|
|
permisos.Add(this);
|
|
}
|
|
}
|