public bool Insert( ref int MasterPageTemplateId, string Name, string Path, string ClassName, string MasterPageContent) { MasterPageTemplateDAC masterpagetemplateComponent = new MasterPageTemplateDAC(); return masterpagetemplateComponent.InsertNewMasterPageTemplate( ref MasterPageTemplateId, Name, Path, ClassName, MasterPageContent); }
public bool Insert(MasterPageTemplate masterpagetemplate) { int autonumber = 0; MasterPageTemplateDAC masterpagetemplateComponent = new MasterPageTemplateDAC(); bool endedSuccessfuly = masterpagetemplateComponent.InsertNewMasterPageTemplate( ref autonumber, masterpagetemplate.Name, masterpagetemplate.Path, masterpagetemplate.ClassName, masterpagetemplate.MasterPageContent); if(endedSuccessfuly) { masterpagetemplate.MasterPageTemplateId = autonumber; } return endedSuccessfuly; }