/// <summary>
        ///
        /// </summary>
        /// <param name="requestUI"></param>
        /// <returns></returns>
        public AppendAppointmentAnswersResponse AppendAppointmentAnswers(AppendAppointmentAnswersRequest requestFromUI)
        {
            try
            {
                var request = new List <appointmentAnswer>();
                foreach (var item in requestFromUI.Answers)
                {
                    appointmentAnswer a = new appointmentAnswer()
                    {
                        answer = item.Answer.ToString(),
                        //question = item.Question,
                        questionExternalId = item.QuestionExternalId
                    };
                    request.Add(a);
                }

                //service.ClientCredentials.UserName.UserName = System.Configuration.ConfigurationManager.AppSettings["UserName"];
                //service.ClientCredentials.UserName.Password = System.Configuration.ConfigurationManager.AppSettings["Password"];

                appointmentAnswer[] answers = request.ToArray <appointmentAnswer>();

                var serviceResponse = service.appendAppointmentAnswers(requestFromUI.ConfirmationNumber, answers);
                return(new AppendAppointmentAnswersResponse()
                {
                    TTStatus = new Entities.TTStatus()
                    {
                        Cause = serviceResponse.cause,
                        Result = serviceResponse.result,
                        Status = serviceResponse.status
                    }
                });
            }
            catch (FaultException exception)
            {
                throw exception;
            }
        }
 public AppendAppointmentAnswersResponse AppendAppointmentAnswers(AppendAppointmentAnswersRequest jsonRequest)
 {
     return(new AppointmentServiceManager().AppendAppointmentAnswers(jsonRequest));
 }