예제 #1
0
        public IEnumerable<SAResponseDAO> GetSAResponses()
        {
            SAResponseServiceClient client = new SAResponseServiceClient();

            try
            {
                IEnumerable<SAResponseDAO> result = client.GetSAResponses();
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
예제 #2
0
        public bool PostSAResponse(SAResponseDAO sAResponse)
        {
            SAResponseServiceClient client = new SAResponseServiceClient();

            try
            {
                bool result = client.CreateSAResponse(sAResponse);
                return result;
            }
            catch (FaultException<KaskServiceException> e)
            {
                throw new HttpException(e.Message);
            }
        }
예제 #3
0
        public SAResponseDAO GetSAResponse(int id)
        {
            SAResponseServiceClient client = new SAResponseServiceClient();

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