Esempio n. 1
0
        public HttpResponseMessage Get(int articleId)
        {
            var article  = Mapper.Map <ArticleViewModel>(_articleManager.GetArticle(articleId));
            var response = Request.CreateResponse(HttpStatusCode.OK, article);

            return(response);
        }
Esempio n. 2
0
        // GET: Article
        public ActionResult Index(int id)
        {
            var article = Mapper.Map <ArticleDetailViewModel>(_articleManager.GetArticle(id));

            return(View(article));
        }