Example #1
0
        public bool Insert( int SourceID,  int ArticleID)
        {
            ArticleSourcesDAC articlesourcesComponent = new ArticleSourcesDAC();
            int ArticleSourceID = 0;

            return articlesourcesComponent.InsertNewArticleSources( ref ArticleSourceID,  SourceID,  ArticleID);
        }
Example #2
0
 public bool Insert(ArticleSources articlesources)
 {
     int autonumber = 0;
     ArticleSourcesDAC articlesourcesComponent = new ArticleSourcesDAC();
     bool endedSuccessfuly = articlesourcesComponent.InsertNewArticleSources( ref autonumber,  articlesources.SourceID,  articlesources.ArticleID);
     if(endedSuccessfuly)
     {
         articlesources.ArticleSourceID = autonumber;
     }
     return endedSuccessfuly;
 }