// GET api/section/5 public HttpResponseMessage Get(string id) { var Section = _Section.GetSectionById(id); if (Section != null) { return(Request.CreateResponse(HttpStatusCode.OK, Section)); } return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "No Section found for this id")); }