public bool Insert( string Name, int LanguageID, int ParentId) { MenuEntityItemLanguageDAC menuentityitemlanguageComponent = new MenuEntityItemLanguageDAC(); int MenuEntityItemId = 0; return menuentityitemlanguageComponent.InsertNewMenuEntityItemLanguage( ref MenuEntityItemId, Name, LanguageID, ParentId); }
public bool Insert(MenuEntityItemLanguage menuentityitemlanguage) { int autonumber = 0; MenuEntityItemLanguageDAC menuentityitemlanguageComponent = new MenuEntityItemLanguageDAC(); bool endedSuccessfuly = menuentityitemlanguageComponent.InsertNewMenuEntityItemLanguage( ref autonumber, menuentityitemlanguage.Name, menuentityitemlanguage.LanguageID, menuentityitemlanguage.ParentId); if(endedSuccessfuly) { menuentityitemlanguage.MenuEntityItemId = autonumber; } return endedSuccessfuly; }