Beispiel #1
0
 public static DalTagArticle ToDalTagArticle(this TagArticleEntity tagArticleEntity)
 {
     if (tagArticleEntity != null)
     {
         return(new DalTagArticle()
         {
             Id = tagArticleEntity.Id,
             ArticleId = tagArticleEntity.ArticleId,
             TagId = tagArticleEntity.TagId
         });
     }
     return(null);
 }
Beispiel #2
0
 public void UpdateTagArticle(TagArticleEntity tagArticle)
 {
     tagArticleRepository.Update(tagArticle.ToDalTagArticle());
     uow.Commit();
 }