public void CadastraSubMenu(mSubMenu model) { dSubMenu dalSubMenu = new dSubMenu(); try { dalSubMenu.CadastraSubMenu(model); } catch (Exception ex) { throw ex; } finally { dalSubMenu = null; } }
/// <summary> /// Busca os SubMenus de um usuario default /// </summary> /// <param name="idMenu">id do Menu para buscar os SubMenus</param> /// <returns>DataTable com os Submenus</returns> public DataTable BuscaSubMenu(int idMenu, int idPerfil) { dSubMenu dal = new dSubMenu(); try { return(dal.BuscaSubMenu(idMenu, idPerfil)); } catch (Exception ex) { throw ex; } finally { dal = null; } }