コード例 #1
0
        internal async Task <Article> CreateNewArticle(User author, string title, string text, int fromRank, ArticleType type, int?bindToAction = null, int?forGroup = null)
        {
            Article article = await Article.AddAsync(author, title, text, type);//, fromRank, forGroup));

            if (article != null)
            {
                Data.Add(article);
                return(article);
            }
            return(null);
        }