Exemple #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));
        }
Exemple #2
0
        public IActionResult GetById(int id)
        {
            var cmt = _commentAppService.GetById(id);

            return(Ok(cmt));
        }