Beispiel #1
0
        public bool Insert(int ArticleId, string Name, int LanguageId, DateTime PostDate)
        {
            ArticleTagDAC articletagComponent = new ArticleTagDAC();
            int           ArticleTagId        = 0;

            return(articletagComponent.InsertNewArticleTag(ref ArticleTagId, ArticleId, Name, LanguageId, PostDate));
        }
Beispiel #2
0
        public bool Insert(ArticleTag articletag)
        {
            int           autonumber          = 0;
            ArticleTagDAC articletagComponent = new ArticleTagDAC();
            bool          endedSuccessfuly    = articletagComponent.InsertNewArticleTag(ref autonumber, articletag.ArticleId, articletag.Name, articletag.LanguageId, articletag.PostDate);

            if (endedSuccessfuly)
            {
                articletag.ArticleTagId = autonumber;
            }
            return(endedSuccessfuly);
        }