public HttpResponseMessage Get() { return(new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent <List <TreeTable> >(ReportLogic.GetAllTreeTable(), new JsonMediaTypeFormatter()) }); }