public HttpResponseMessage GetExtractionTriggers(HttpRequestMessage request, string jobCode) { return(GetHttpResponse(request, () => { //Cancel Extraction ExtractionTriggerData[] extractionTriggers = _ExtractionProcessService.GetExtractionTriggerByJob(jobCode); return request.CreateResponse <ExtractionTriggerData[]>(HttpStatusCode.OK, extractionTriggers); })); }