public HttpResponseMessage Get(int id) { try { var article = ArticleBase.Load(id, _articleRepository).GetJSONModel(); if (article == null) { return(Request.CreateResponse(HttpStatusCode.NoContent)); } return(Request.CreateResponse(HttpStatusCode.OK, article)); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex)); } }