public HttpResponseMessage GetCOPList(int?siteId, int?programId) { try { var COPList = TaskServices.GetCOPList(siteId, programId); return(Request.CreateResponse(HttpStatusCode.OK, COPList)); } catch (Exception ex) { ex.Data.Add("HTTPReferrer", "JCRAPI/TaskInfo/GetCOPList"); WebExceptionHelper.LogException(ex, null); return(Request.CreateResponse(HttpStatusCode.OK, string.Empty)); } }