protected SurveyAnswerStateDTO GetSurveyAnswerState(IResponseContext responseContext)
        {
            var surveyAnswerRequest = new SurveyAnswerRequest {
                ResponseContext = responseContext.CloneResponseContext()
            };
            SurveyAnswerStateDTO result = _surveyFacade.GetSurveyAnswerState(surveyAnswerRequest);

            return(result);
        }
        public ActionResult CheckForConcurrency(String responseId)
        {
            ResponseContext responseContext = GetSetResponseContext(responseId);

            SurveyAnswerStateDTO surveyAnswerStateDTO = GetSurveyAnswerState(responseContext);

            SetSessionValue(UserSession.Key.EditResponseId, responseId);

            var json = Json(surveyAnswerStateDTO);

            return(json);
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public SurveyAnswerStateDTO GetSurveyAnswerState(SurveyAnswerRequest request)
        {
            try
            {
                SurveyAnswerResponse result = new SurveyAnswerResponse();

                SurveyResponseProvider surveyResponseImplementation = new SurveyResponseProvider(_surveyResponseDao);

                var responseContext = request.ResponseContext;
                int loggedInUserId  = request.UserId;
                SurveyResponseBO     surveyResponseBO     = surveyResponseImplementation.GetSurveyResponseStateById(responseContext);
                SurveyAnswerStateDTO surveyAnswerStateDTO = surveyResponseBO != null?surveyResponseBO.ToSurveyAnswerStateDTO(loggedInUserId) : null;

                return(surveyAnswerStateDTO);
            }
            catch (Exception ex)
            {
                throw new FaultException <CustomFaultException>(new CustomFaultException(ex));
            }
        }
Beispiel #4
0
        public SurveyAnswerStateDTO GetSurveyAnswerState(SurveyAnswerRequest surveyAnswerRequest)
        {
            SurveyAnswerStateDTO surveyAnswerStateDTO = _dataEntryService.GetSurveyAnswerState(surveyAnswerRequest);

            return(surveyAnswerStateDTO);
        }