Exemplo n.º 1
0
        public IHttpActionResult Get(int id)
        {
            ReplyService replyService = CreateReplyService();
            var          reply        = replyService.GetReplyByCommentId(id);

            return(Ok(reply));
        }
Exemplo n.º 2
0
        ////GET BY ID
        public IHttpActionResult GetByCommentId(int id)
        {
            ReplyService service = CreateReplyService();

            IEnumerable <ReplyListItem> comments = service.GetReplyByCommentId(id);

            return(Ok(comments));
        }