コード例 #1
0
        public ActionResult <IEnumerable <CommentViewModel> > GetComments(int toothId)
        {
            if (!_toothService.Exist(toothId))
            {
                return(NotFound());
            }

            return(_toothService.GetComments(toothId).Select(c => CommentMapper.DTOtoCommentVM(c)).ToList());
        }