public bool Insert(string MenuName, int ContentEntityId, string ContentEntityType) { MenuEntityDAC menuentityComponent = new MenuEntityDAC(); int MenuEntityId = 0; return(menuentityComponent.InsertNewMenuEntity(ref MenuEntityId, MenuName, ContentEntityId)); }
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); }