public IHttpActionResult GetHtmlTreeViewMenu(int id) { var serviceDescription = _serviceDescriptionService.Get(id, withSawsdlModelReference: true); if (serviceDescription == null) { return(Content(System.Net.HttpStatusCode.NotFound, "Service description with given ID not found")); } var html = _serviceDescriptionService.GetHtmlTreeViewMenu(serviceDescription); return(Ok(html)); }