public ActionResult ChangeSecurityQuestions()
        {
            var request = new GetSecurityQuestionsRequest
            {
                Id         = User.Id,
                CustomerId = Customer.CustomerId
            };
            GetSecurityQuestionsResponse response = _userService.GetSecurityQuestions(request);

            return(View(response.UsersUpdateSecurityQuestionsModel));
        }
Exemple #2
0
        public GetSecurityQuestionsResponse GetSecurityQuestions(GetSecurityQuestionsRequest request)
        {
            GetSecurityQuestionsResponse response = new GetSecurityQuestionsResponse();

            User user = _userRepository.Get(request.Id);

            response.UsersUpdateSecurityQuestionsModel = Mapper.Map <UsersUpdateSecurityQuestionsModel>(user);
            response.UsersUpdateSecurityQuestionsModel.SecurityQuestionOptions = new SelectList(GetSecurityQuestions(request.CustomerId));
            response.UsersUpdateSecurityQuestionsModel.UpdateQuestionIndexes();

            return(response);
        }