public QuestionController(IQuestionService questionService, IMapper mapper, IQuestionOptionService optionService) { _questionService = questionService; _mapper = mapper; _optionservice = optionService; }
public UserController(IQuestionService questionService, IQuestionOptionService questionOptionService, IAnswerService answerService, IPersonService personService, IUserService userService, ICityService cityService, IGenderService genderService, ILogger <UserController> logger) { _questionService = questionService; _questionOptionService = questionOptionService; _answerService = answerService; _personService = personService; _userService = userService; _cityService = cityService; _genderService = genderService; _logger = logger; }
public ManagerController(ISurveyService surveyService, IQuestionService questionService, IQuestionOptionService questionOptionService, IManagerService managerService, IPersonService personService, IGroupService groupService, IAnswerService answerService, IUserService userService, IPersonUserService personUserService, ILogger <ManagerController> logger) { _surveyService = surveyService; _questionService = questionService; _questionOptionService = questionOptionService; _managerService = managerService; _personService = personService; _groupService = groupService; _answerService = answerService; _userService = userService; _personUserService = personUserService; _logger = logger; }
public AnonymousController(IQuestionService questionService, IMapper mapper, IQuestionOptionService optionService, ISurveyService surveyService, IAnonymousUserService anonymousUserService, IAnswerSubmissionService answerSubmissionService ) { _questionService = questionService; _mapper = mapper; _optionservice = optionService; _surveyService = surveyService; _anonymousUserService = anonymousUserService; _answerSubmissionService = answerSubmissionService; }
public SurveySectionsController( ISurveySectionRespondentService surveySectionRespondentServie, IConfiguration configuration, ISurveySectionService surveySectionService, IPageService pageService, IAnswerService answerService, IQuestionService questionService, IQuestionOptionService questionOptionService ) { _answerService = answerService; _surveySectionRespondentServie = surveySectionRespondentServie; _configuration = configuration; _surveySectionService = surveySectionService; _pageService = pageService; _questionService = questionService; _questionOptionService = questionOptionService; }
public AnswerService( IQuestionOptionService questionOptionService, IOptionChoiceService optionChoiceService, IUowProvider uowProvider, IMapper mapper ) { _questionOptionService = questionOptionService; _optionChoiceService = optionChoiceService; this.UowProvider = uowProvider; this.Mapper = mapper; switchAnswerType = new Dictionary <Type, Action> { { typeof(TextAnswerModel), () => { SaveTextAnswer((TextAnswerModel)baseAnswerModel); } }, { typeof(TextAreaAnswerModel), () => { SaveTextAreaAnswer((TextAreaAnswerModel)baseAnswerModel); } }, { typeof(RadioAnswerModel), () => { SaveRadioAnswer((RadioAnswerModel)baseAnswerModel); } }, { typeof(CheckBoxAnswerModel), () => { SaveCheckBoxAnswer((CheckBoxAnswerModel)baseAnswerModel); } }, { typeof(DropdownAnswerModel), () => { SaveDropdownAnswer((DropdownAnswerModel)baseAnswerModel); } }, { typeof(GridAnswerModel), () => { SaveGridRadioAnswer((GridAnswerModel)baseAnswerModel); } }, }; }
public QuestionService( IUowProvider uowProvider, IMapper mapper, IInputTypeService inputTypeService, IOptionGroupService optionGroupService, IOptionChoiceService optionChoiceService, IQuestionOptionService questionOptionService, ISurveyStructureService surveyStructureService ) { this.UowProvider = uowProvider; this.Mapper = mapper; this._inputTypeService = inputTypeService; this._optionGroupService = optionGroupService; this._optionChoiceService = optionChoiceService; _questionOptionService = questionOptionService; _surveyStructureService = surveyStructureService; inputTypeList = _inputTypeService.GetAll(); optionGroupDefinitions = new OptionGroupDefinitions(); switchQuestionType = new Dictionary <Type, Action> { { typeof(TextQuestionModel), () => { SaveTextQuestion((TextQuestionModel)baseQuestionModel); } }, { typeof(TextAreaQuestionModel), () => { SaveTextAreaQuestion((TextAreaQuestionModel)baseQuestionModel); } }, { typeof(RadioQuestionModel), () => { SaveRadioQuestion((RadioQuestionModel)baseQuestionModel); } }, { typeof(CheckBoxQuesstionModel), () => { SaveCheckBoxQuestion((CheckBoxQuesstionModel)baseQuestionModel); } }, { typeof(DropdownQuestionModel), () => { SaveDropdownQuestion((DropdownQuestionModel)baseQuestionModel); } }, { typeof(GridRadioQuestionModel), () => { SaveGridRadioQuestion((GridRadioQuestionModel)baseQuestionModel); } }, }; switchUpdateQuestionType = new Dictionary <Type, Action> { { typeof(TextQuestionModel), () => { UpdateTextQuestion((TextQuestionModel)baseQuestionUpdateModel); } }, { typeof(TextAreaQuestionModel), () => { UpdateTextAreaQuestion((TextAreaQuestionModel)baseQuestionUpdateModel); } }, { typeof(RadioQuestionModel), () => { UpdateRadioQuestion((RadioQuestionModel)baseQuestionUpdateModel); } }, { typeof(CheckBoxQuesstionModel), () => { UpdateCheckboxQuestion((CheckBoxQuesstionModel)baseQuestionUpdateModel); } }, { typeof(DropdownQuestionModel), () => { UpdateDropdownQuestion((DropdownQuestionModel)baseQuestionUpdateModel); } }, { typeof(GridRadioQuestionModel), () => { UpdateGridRadioQuestion((GridRadioQuestionModel)baseQuestionUpdateModel); } }, }; }
public QuestionOptionController(IQuestionOptionService questionService) { _questionService = questionService; }