Example #1
0
        public IHttpActionResult GetComment(int id)
        {
            LessonComment comment = _lessonRepository.GetComment(id);

            if (comment != null)
            {
                return(Ok(new LessonCommentDTO(comment)));
            }

            return(NotFound());
        }