Exemplo n.º 1
0
        public static IEnumerable <Consensus.UserInterface.SystemMenu> FetchAllByParentId(System.Nullable <System.Int32> parentId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SystemMenu.FetchAllByParentId(site, parentId));
        }
Exemplo n.º 2
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SystemMenu.GetTableName(site));
        }
Exemplo n.º 3
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:SystemMenuModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:SystemMenuModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.UserInterface.SystemMenu> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SystemMenu.FetchAll(site));
        }
Exemplo n.º 4
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:SystemMenuModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:SystemMenuModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:SystemMenuModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.UserInterface.SystemMenu FetchById(System.Int32 id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SystemMenu.FetchById(site, id));
        }
Exemplo n.º 5
0
        /// <summary>
        ///     Creates a new <see cref="!:SystemMenuModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:SystemMenuModel" /> instance.
        /// </returns>
        public static Consensus.UserInterface.SystemMenu Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(SystemMenu.Create(site));
        }