[EditArticles] public static Guid xmlDB_Create_Article(this TM_Xml_Database tmDatabase, TeamMentor_Article article) { if (article.notNull()) { article.Metadata.Id = Guid.NewGuid(); if (article.xmlDB_Save_Article(tmDatabase)) { return(article.Metadata.Id); } } return(Guid.Empty); }
public static IE_TeamMentor article_Html(this IE_TeamMentor ieTeamMentor, TeamMentor_Article tmArticle) { return (ieTeamMentor.notNull() && tmArticle.notNull()) ? ieTeamMentor.article_Html(tmArticle.Metadata.Id) : ieTeamMentor; }
public static Guid xmlDB_Create_Article(this TM_Xml_Database tmDatabase, TeamMentor_Article article) { UserRole.EditArticles.demand(); if (article.notNull()) { article.Metadata.Id = Guid.NewGuid(); if(article.xmlDB_Save_Article(tmDatabase)) return article.Metadata.Id; } return Guid.Empty; }