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