Example #1
0
        //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);
        }
Example #2
0
 public void InsertArticles(Articles articles)
 {
     iarticles.InsertArticles(articles);
 }
Example #3
0
 public void EditArticle(Articles article)
 {
     iarticle.EditArticle(article);
 }
Example #4
0
 public void AddArticle(Articles article)
 {
     iarticle.AddArticle(article);
 }
Example #5
0
 public void RemoveArticle(Articles article)
 {
     iarticle.RemoveArticle(article);
 }
Example #6
0
        public Articles GetArticleById(int?id)
        {
            Articles article = iarticle.GetArticleById(id);

            return(article);
        }