public ActionResult RegistrationQuestion(RegistrationQuestionViewModel viewModel)
        {
            using (var unitOfWork = UnitOfWorkManager.NewUnitOfWork())
            {
                var settings = SettingsService.GetSettings(false);
                settings.SpamAnswer = viewModel.SpamAnswer;
                settings.SpamQuestion = viewModel.SpamQuestion;

                try
                {
                    unitOfWork.Commit();
                    // Show a message
                    ShowMessage(new GenericMessageViewModel
                    {
                        Message = "Updated",
                        MessageType = GenericMessages.success
                    });
                }
                catch (Exception ex)
                {
                    LoggingService.Error(ex);
                    unitOfWork.Rollback();
                    // Show a message
                    ShowMessage(new GenericMessageViewModel
                    {
                        Message = "Error, Please check log",
                        MessageType = GenericMessages.danger
                    });
                }

                return View(viewModel);
            }
        }
 public ActionResult RegistrationQuestion()
 {
     using (UnitOfWorkManager.NewUnitOfWork())
     {
         var viewModel = new RegistrationQuestionViewModel
         {
             SpamAnswer = _settings.SpamAnswer, SpamQuestion = _settings.SpamQuestion
         };
         return View(viewModel);
     }
 }