예제 #1
0
        public bool Insert(string MenuName, int ContentEntityId, string ContentEntityType)
        {
            MenuEntityDAC menuentityComponent = new MenuEntityDAC();
            int           MenuEntityId        = 0;

            return(menuentityComponent.InsertNewMenuEntity(ref MenuEntityId, MenuName, ContentEntityId));
        }
예제 #2
0
        public bool Insert(MenuEntity menuentity)
        {
            int           autonumber          = 0;
            MenuEntityDAC menuentityComponent = new MenuEntityDAC();
            bool          endedSuccessfuly    = menuentityComponent.InsertNewMenuEntity(ref autonumber, menuentity.MenuName, menuentity.ContentEntityId);

            if (endedSuccessfuly)
            {
                menuentity.MenuEntityId = autonumber;
            }
            return(endedSuccessfuly);
        }