//public IEnumerable<Articles> GetArticleById(int id) //{ // var articles = iarticles.GetArticleById(id); // return articles; //} public Articles GetArticleById(int id) { Articles articles = iarticles.GetArticleById(id); return(articles); }
public void InsertArticles(Articles articles) { iarticles.InsertArticles(articles); }
public void EditArticle(Articles article) { iarticle.EditArticle(article); }
public void AddArticle(Articles article) { iarticle.AddArticle(article); }
public void RemoveArticle(Articles article) { iarticle.RemoveArticle(article); }
public Articles GetArticleById(int?id) { Articles article = iarticle.GetArticleById(id); return(article); }