Example #1
0
        public int GetMaxOrder()
        {
            MenuCommandBuilder menuCommandBuilder = new MenuCommandBuilder();
            string             query = menuCommandBuilder.GetMaxOrder();

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

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

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