Example #1
0
 public WizardController(ISectionUnitOfWork SectionUnitOfWork)
 {
     _sectionUnitOfWork = SectionUnitOfWork;
     _sectionBuilder    = new SectionBuilder(_sectionUnitOfWork);
     _planMapper        = new PlanViewModelMapper();
     _questionMapper    = new QuestionViewModelMapper();
     _choiceMapper      = new ChoiceViewModelMapper();
     _answerMapper      = new AnswerViewModelMapper();
     _qcaMapper         = new QCAViewModelMapper(_questionMapper, _choiceMapper, _answerMapper);
 }
Example #2
0
        public PlansController()
        {
            _plans      = new PlanRepository();
            _planMapper = new PlanViewModelMapper();

            try
            {
                _currentUser = System.Web.HttpContext.Current.User.Identity.GetUserId();
            }
            catch (Exception Ex)
            {
                _currentUser = null;
            }
        }