Esempio n. 1
0
        public HttpResponseMessage GetTaskFollowUpRemainderSettings(int siteId)
        {
            try
            {
                var taskfollowupRemainderSettings = TaskServices.GetTaskFollowUpRemainderSettings(siteId);

                if (taskfollowupRemainderSettings != null)
                {
                    return(Request.CreateResponse(HttpStatusCode.OK, taskfollowupRemainderSettings));
                }

                return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "No data found"));
            }
            catch (Exception ex)
            {
                ex.Data.Add("siteId", siteId);
                ex.Data.Add("HTTPReferrer", "JCRAPI/TaskInfo/GetTaskFollowUpRemainderSettings");
                WebExceptionHelper.LogException(ex, null);
                return(null);
            }
        }