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