Пример #1
0
        public async Task CreateAsync(Article article)
        {
            article.Created  = DateTime.Now;
            article.HtmlBody = GetHtmlFromMarkdown(article.Body);
            article.Tags     = article.Tags.Select(t => t.Trim()).ToList();

            await _articlesRepository.CreateAsync(article);

            await CreateTagsAsync(article.Tags);
        }