コード例 #1
0
ファイル: TaskController.cs プロジェクト: KirutigaR/EMS
        public HttpResponseMessage GetTaskList(int project_id = 0)//p_id project_id
        {
            HttpResponseMessage response = null;

            try
            {
                List <TaskModel> tasklist = TaskRepo.GetTaskList(project_id);
                response = Request.CreateResponse(HttpStatusCode.OK, new EMSResponseMessage("EMS_001", "Success", tasklist));
            }
            catch (Exception exception)
            {
                Debug.WriteLine(exception.Message);
                Debug.WriteLine(exception.GetBaseException());
                response = Request.CreateResponse(HttpStatusCode.OK, new EMSResponseMessage("EMS_101", "Application Error", exception.Message));
            }
            return(response);
        }