Beispiel #1
0
 public async Task AddArticle(CreateArticleDataTranser article)
 {
     await _articleRepository.AddArticleWithAuthorAndTags
     (
         new Article
     {
         Title          = article.Title,
         Content        = article.Content,
         CreationDate   = DateTime.UtcNow,
         AuthorNickname = article.AuthorNickname
     },
         new Author
     {
         Email = article.AuthorEmail
     },
         new Tag
     {
         Name = article.Tags
     }
     );
 }