Exemple #1
0
        public static IEnumerable <int> GetSelectPermissoesBy_ModuloPai(int mod_id, int sis_id)
        {
            try
            {
                var mod_paiID =
                    from n in SYS_ModuloBO.GetSelect()
                    where n.mod_id == mod_id && n.sis_id == sis_id
                    select n.mod_idPai;

                return(mod_paiID);
            }
            catch
            {
                throw;
            }
        }
Exemple #2
0
        public static IEnumerable <int> GetSelectPermissoesBy_ModuloFilho(int mod_idPai)
        {
            try
            {
                var mod_id =
                    from n in SYS_ModuloBO.GetSelect()
                    where n.mod_idPai == mod_idPai
                    select n.mod_idPai;

                return(mod_id);
            }
            catch
            {
                throw;
            }
        }