public List<Modelo_Entidades.PERFIL> recuperarPerfilForm(Modelo_Entidades.USUARIO oUsu, Modelo_Entidades.FORMULARIO oForm) { CCUGPerfiles oCCUGPerfiles = new CCUGPerfiles(); List<Modelo_Entidades.PERFIL> collPerfilesObtenidos = new List<Modelo_Entidades.PERFIL>();// foreach (Modelo_Entidades.GRUPO oGrupo in oUsu.GRUPOS) { List<Modelo_Entidades.PERFIL> collPerfiles = new List<Modelo_Entidades.PERFIL>(); collPerfiles = oCCUGPerfiles.obtenerPerfiles(oGrupo, oForm); foreach (Modelo_Entidades.PERFIL oPerfil in collPerfiles) { if (collPerfilesObtenidos.Find(delegate(Modelo_Entidades.PERFIL oPerfilBuscado){return oPerfilBuscado==oPerfil;})==null) { collPerfilesObtenidos.Add(oPerfil); } } } return collPerfilesObtenidos; }
public static CCUGPerfiles ObtenerInstancia() { if (oInstancia==null) oInstancia= new CCUGPerfiles(); return oInstancia; }