public static ArticlePublished makeNewArticleByCloningContentAndVersion(BaseArticle article)
        {
            ArticlePublished a = new ArticlePublished();

            a.isApproved       = article.isApproved;
            a.isUnapproved     = article.isUnapproved;
            a.approvalRemarks  = article.approvalRemarks;
            a.approvedBy       = article.approvedBy;
            a.dateApproved     = article.dateApproved;
            a.dateUnapproved   = article.dateUnapproved;
            a.isPublished      = article.isPublished;
            a.datePublished    = article.datePublished;
            a.Version          = article.Version;
            a.Excerpt          = article.Excerpt;
            a.BaseArticleID    = article.BaseArticleID;
            a.categoryID       = article.categoryID;
            a.Desc             = article.Desc;
            a.Name             = article.Name;
            a.Slug             = article.Slug;
            a.Keywords         = article.Keywords;
            a.MetaData         = article.MetaData;
            a.MetaKeywords     = article.MetaKeywords;
            a.Lang             = article.Lang;
            a.datePublishStart = article.datePublishStart;
            a.datePublishEnd   = article.datePublishEnd;
            return(a);
        }
Example #2
0
        public virtual BaseArticle makeNewArticleByCloningContent()
        {
            BaseArticle a = new BaseArticle();

            a.BaseArticleID = BaseArticleID;
            a.categoryID    = categoryID;
            a.Excerpt       = Excerpt;
            a.Desc          = Desc;
            a.Name          = Name;
            a.Slug          = Slug;
            a.Keywords      = Keywords;
            a.Lang          = Lang;
            return(a);
        }