Exemplo n.º 1
0
 /// <summary>
 /// Constructor the controller.
 /// </summary>
 /// <param name="unitOfWork">Unit of work service.</param>
 /// <param name="questionTypeManager">Question type manager service.</param>
 public SurveyBuilderController(IUnitOfWork unitOfWork, IFileDownloader fileDownloaderService, IAuthorizationService authorizationService, IAccountManager accountManager,
                                IQuestionTypeManager questionTypeManager, ISurveyBuilderService surveyBuilderService, IOptions <RequestLocalizationOptions> localizationOptions)
 {
     this._unitOfWork           = unitOfWork;
     this._authorizationService = authorizationService;
     this._accountManager       = accountManager;
     this._questionTypeManager  = questionTypeManager;
     this._surveyBuilderService = surveyBuilderService;
     this._fileDownloader       = fileDownloaderService;
     this._localizationOptions  = localizationOptions;
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="viewService"></param>
 /// <param name="accountManager"></param>
 /// <param name="unitOfWork"></param>
 /// <param name="builderService"></param>
 /// <param name="manager"></param>
 /// <param name="userManager"></param>
 /// <param name="configuration"></param>
 public SurveyViewerController(ISurveyViewerService viewService,
                               IAccountManager accountManager,
                               IUnitOfWork unitOfWork,
                               ISurveyBuilderService builderService,
                               IQuestionTypeManager manager,
                               UserManager <ApplicationUser> userManager,
                               IConfiguration configuration,
                               IHttpContextAccessor accessor
                               )
 {
     this._unitOfWork      = unitOfWork;
     this._viewService     = viewService;
     this._accountManager  = accountManager;
     this._builderService  = builderService;
     this._manager         = manager;
     this._userManager     = userManager;
     this._configuration   = configuration;
     this._contextAccessor = accessor;
 }