Esempio n. 1
0
        public IEnumerable <DetailsModel> GetAllArticle()
        {
            // return new string[] { "value1", "value2" };
            var artCollection = MapperTools.MapToCollection <ArticleBl, DetailsModel>(_articleService.GetAll());

            return(artCollection);
        }
        public ActionResult ListArticle()
        {
            var artCollection = MapperTools.MapToCollection <ArticleBl, DetailsModel>(_articleService.GetAll());

            return(View(artCollection));
        }