public Task IncludeArticle(Article article)
 {
     articleDataContext.Articles.AddAsync(article);
     return(articleDataContext.SaveChangesAsync());
 }
Пример #2
0
 public Task AddParagraph(Paragraph paragraph)
 {
     articleDataContext.Paragraphs.Add(paragraph);
     return(articleDataContext.SaveChangesAsync());
 }