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

            return(View(response.UsersUpdateSecurityQuestionsModel));
        }
Example #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);
        }