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

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