public HttpResponseMessage GetProjects() { log.Debug("START-EXECUTE - Pull All Projects"); var response = new HttpResponseMessage(); try { var projects = projectService.AllProjects(); response = Request.CreateResponse(HttpStatusCode.OK, projects); } catch (Exception ex) { log.ErrorFormat("Fatal Exception happened while pulling data : {0}", ex.InnerException); } return(response); }