コード例 #1
0
ファイル: HomePageLogic.cs プロジェクト: ramyothman/RBM
        public bool Insert(int SectionID, int ContentModuleTypeID, int PositionID, int OrderNumber, bool IsFullWidth, int ItemsNumber, int ItemsPerPage, bool IsActive, int SiteID, string Title, int LanguageID, int HomePageGroupID)
        {
            HomePageDAC homepageComponent = new HomePageDAC();
            int HomePageID = 0;

            return homepageComponent.InsertNewHomePage( ref HomePageID,  SectionID,  ContentModuleTypeID,  PositionID,  OrderNumber,  IsFullWidth,  ItemsNumber,  ItemsPerPage,  IsActive,Title,LanguageID,HomePageGroupID);
        }
コード例 #2
0
ファイル: HomePageLogic.cs プロジェクト: ramyothman/RBM
 public bool Insert(HomePage homepage)
 {
     int autonumber = 0;
     HomePageDAC homepageComponent = new HomePageDAC();
     bool endedSuccessfuly = homepageComponent.InsertNewHomePage( ref autonumber,  homepage.SectionID,  homepage.ContentModuleTypeID,  homepage.PositionID,  homepage.OrderNumber,  homepage.IsFullWidth,  homepage.ItemsNumber,  homepage.ItemsPerPage,  homepage.IsActive,homepage.Title,homepage.LanguageID,homepage.HomePageGroupID);
     if(endedSuccessfuly)
     {
         homepage.HomePageID = autonumber;
     }
     return endedSuccessfuly;
 }