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; } }
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; } }