Ejemplo n.º 1
0
        // GET: Comments/Details/5
        public ActionResult Details(int id)
        {
            var comment          = _commentApp.GetById(id);
            var commentViewModel = Mapper.Map <Comment, CommentViewModel>(comment);

            return(View(commentViewModel));
        }
Ejemplo n.º 2
0
        public IActionResult GetById(int id)
        {
            var cmt = _commentAppService.GetById(id);

            return(Ok(cmt));
        }