public IActionResult GetAll(CommentFilter filter) { var cmt = _commentAppService.GetAll(filter); return(Ok(cmt)); }
// GET: Comments public ActionResult Index() { var commentViewModel = Mapper.Map <IEnumerable <Comment>, IEnumerable <CommentViewModel> >(_commentApp.GetAll()); return(View(commentViewModel)); }