FEAT: hecho el arreglo de los botones y empecé con el registro de propiedades

This commit is contained in:
2024-11-24 22:47:38 -03:00
parent d2a7368dee
commit 50bb59e15f
28 changed files with 299 additions and 51 deletions

View File

@@ -19,9 +19,9 @@ public class RepositorioGrupos: RepositorioBase<RepositorioGrupos> {
return Guardar(con);
}
public object? Listar()
{
return Context.Grupos.Include(x => x.Idpermisos);
public IQueryable<Permiso> ListarPermisosDeGrupo(string grupo) {
var con = Context;
return con.Grupos.Where(x=>x.Nombre == grupo).SelectMany(x => x.Idpermisos);
}
}