コード例 #1
0
        public IEnumerable<SAQuestionDAO> GetSAQuestions()
        {
            SAQuestionServiceClient client = new SAQuestionServiceClient();

            try
            {
                IEnumerable<SAQuestionDAO> result = client.GetSAQuestions();
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
コード例 #2
0
        public bool PostSAQuestion(SAQuestionDAO sAQuestion)
        {
            SAQuestionServiceClient client = new SAQuestionServiceClient();

            try
            {
                bool result = client.CreateSAQuestion(sAQuestion);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
コード例 #3
0
        public SAQuestionDAO GetSAQuestion(int id)
        {
            SAQuestionServiceClient client = new SAQuestionServiceClient();

            try
            {
                SAQuestionDAO result = client.GetSAQuestionByID(id);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }