Пример #1
0
        public HttpResponseMessage Get()
        {
            try
            {
                var comments = CommentModel.GetAll(_articleRepository);

                return(Request.CreateResponse(HttpStatusCode.OK, comments));
            }
            catch (Exception ex)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex));
            }
        }