public bool UpdateArticle(Models.Article Article)
        {
            //EntityMapper<Models.Article, DataAccessLayer.Article> mapObj = new EntityMapper<Models.Article, DataAccessLayer.Article>();
            DataAccessLayer.Article ArticleObj = new DataAccessLayer.Article();
            ArticleObj.ArticleId      = Article.ArticleId;
            ArticleObj.ArticleName    = Article.ArticleName;
            ArticleObj.ArticleContent = Article.ArticleContent;

            //ArticleObj = mapObj.Translate(Article);
            var status = DAL.UpdateArticle(ArticleObj);

            return(status);
        }
        public JsonResult <Models.Article> GetArticle(int id)
        {
            DataAccessLayer.Article article = DAL.GetArticle(id);


            //EntityMapper<DataAccessLayer.Article, Models.Article> mapObj = new EntityMapper<DataAccessLayer.Article, Models.Article>();
            //DataAccessLayer.Article dalArticle = DAL.GetArticle(id);
            Models.Article Articles = new Models.Article();
            //Articles = mapObj.Translate(dalArticle);
            //return Json<Models.Article>(Articles);
            Articles.ArticleName    = article.ArticleName;
            Articles.ArticleContent = article.ArticleContent;
            return(Json(Articles));
        }
        public bool InsertArticle(Models.Article Article)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                //EntityMapper<Models.Article, DataAccessLayer.Article> mapObj = new EntityMapper<Models.Article, DataAccessLayer.Article>();
                DataAccessLayer.Article ArticleObj = new DataAccessLayer.Article();
                ArticleObj.ArticleName    = Article.ArticleName;
                ArticleObj.ArticleContent = Article.ArticleContent;

                //ArticleObj = mapObj.Translate(Article);
                status = DAL.InsertArticle(ArticleObj);
            }
            return(status);
        }