public void Receive(IArticle <TData> genericArticle) { Console.WriteLine($"--------------------------Hello i am {_name}\n" + $"Tags: " + string.Join(" ", genericArticle.Tags) + "\n" + genericArticle.GetArticle() + "\n"); }
public IActionResult Article(int id) { var post = _article.GetArticle(id); return(View(post)); }
//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); }