public HttpResponseMessage GetAMPTaskListByEPTextID(string standardEffDate, int siteId, int programId, int epTextId) { try { var taskList = TaskServices.GetAMPTaskListByEPTextID(standardEffDate, siteId, programId, epTextId); if (taskList != null) { return(Request.CreateResponse(HttpStatusCode.OK, taskList)); } return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "No Tasks Found")); } catch (Exception ex) { ex.Data.Add("SiteID", siteId); ex.Data.Add("HTTPReferrer", "JCRAPI/TaskInfo/GetAMPTaskListByEPTextID"); WebExceptionHelper.LogException(ex, null); return(null); } }