Ejemplo n.º 1
0
        public bool Insert(string Name)
        {
            MenuEntityTypeDAC menuentitytypeComponent = new MenuEntityTypeDAC();
            int MenuEntityTypeId = 0;

            return(menuentitytypeComponent.InsertNewMenuEntityType(ref MenuEntityTypeId, Name));
        }
Ejemplo n.º 2
0
        public bool Insert(MenuEntityType menuentitytype)
        {
            int autonumber = 0;
            MenuEntityTypeDAC menuentitytypeComponent = new MenuEntityTypeDAC();
            bool endedSuccessfuly = menuentitytypeComponent.InsertNewMenuEntityType(ref autonumber, menuentitytype.Name);

            if (endedSuccessfuly)
            {
                menuentitytype.MenuEntityTypeId = autonumber;
            }
            return(endedSuccessfuly);
        }