コード例 #1
0
ファイル: TaskController.cs プロジェクト: SubhoM/WebApi
        public HttpResponseMessage GetChapterList(int?siteId, int?programId, int?userId, int?certificationItemId, string standardEffBeginDate, int?serviceProfileTypeId)
        {
            try
            {
                var ChapterList = TaskServices.GetChapterList(siteId, programId, userId, certificationItemId, standardEffBeginDate, serviceProfileTypeId);

                return(Request.CreateResponse(HttpStatusCode.OK, ChapterList));
            }
            catch (Exception ex)
            {
                ex.Data.Add("HTTPReferrer", "JCRAPI/TaskInfo/GetChapterList");
                WebExceptionHelper.LogException(ex, null);
                return(Request.CreateResponse(HttpStatusCode.OK, string.Empty));
            }
        }