Ejemplo n.º 1
0
        public int GetMaxOrder()
        {
            MenuCommandBuilder menuCommandBuilder = new MenuCommandBuilder();
            string             query = menuCommandBuilder.GetMaxOrder();

            return(DBManager.ExecuteScalar <int>(base.ConnectionHandler, query));
        }
Ejemplo n.º 2
0
        public IEnumerable <Menu> GetChildMenu(Guid parentMenuId)
        {
            MenuCommandBuilder menuCommandBuilder = new MenuCommandBuilder();
            SqlCommand         query = menuCommandBuilder.GetChildMenu(parentMenuId);

            return(DBManager.GetCollection <Menu>(ConnectionHandler, query));
        }
Ejemplo n.º 3
0
        public IEnumerable <Menu> GetParentsAndChilds(Guid?congressId)
        {
            MenuCommandBuilder menuCommandBuilder = new MenuCommandBuilder();
            string             query = menuCommandBuilder.GetParentsChilds(congressId);

            return(DBManager.GetCollection <Menu>(base.ConnectionHandler, query));
        }