Пример #1
0
 public void Receive(IArticle <TData> genericArticle)
 {
     Console.WriteLine($"--------------------------Hello i am {_name}\n" +
                       $"Tags: " + string.Join(" ", genericArticle.Tags) +
                       "\n" + genericArticle.GetArticle() + "\n");
 }
Пример #2
0
        public IActionResult Article(int id)
        {
            var post = _article.GetArticle(id);

            return(View(post));
        }
Пример #3
0
        //public IQueryable<Anreply> GetAnreplyByAnswerId(int id)
        //{
        //    var answer = db.Anreply.Include("Ancomment").Where(o => o.AnswerId == id);
        //    return answer;
        //}

        public IEnumerable <Article> GetArticle()
        {
            var article = iarticle.GetArticle();

            return(article);
        }