|
@@ -47,7 +47,7 @@ namespace ChecksArticlesForSpam.ViewModels
|
|
{
|
|
{
|
|
ArticleItem.TextArticle = TextArticle;
|
|
ArticleItem.TextArticle = TextArticle;
|
|
ArticleItem.UserId = currentUser.IdUser;
|
|
ArticleItem.UserId = currentUser.IdUser;
|
|
- ArticleItem.CheckSpam = false;
|
|
|
|
|
|
+ if (ArticleItem.CheckSpam == null) ArticleItem.CheckSpam = false;
|
|
ArticleItem.Title = TitleArticle;
|
|
ArticleItem.Title = TitleArticle;
|
|
return new Dictionary<string, Article> { { "3", ArticleItem } }; ;
|
|
return new Dictionary<string, Article> { { "3", ArticleItem } }; ;
|
|
}
|
|
}
|