public HttpResponseMessage GetCMSTaskListByCMSStandardID(string standardEffDate, int siteId, int programId, int cmsStandardId) { try { var taskList = TaskServices.GetCMSTaskListByCMSStandardID(standardEffDate, siteId, programId, cmsStandardId); 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/GetCMSTaskListByCMSStandardID"); WebExceptionHelper.LogException(ex, null); return(null); } }