Пример #1
0
 public SurvayController(ISurvayService survayService, IMapper mapper, IFieldDependantService fieldService
                         , ISurvayTypeService survayType, IUserSurvayService userSurvayService, IAnswerSurvayService survayAnswer)
 {
     _mapper                = mapper;
     _survayService         = survayService;
     _fieldDependantService = fieldService;
     _survayTypeService     = survayType;
     _userSurvayService     = userSurvayService;
     _survayAnswer          = survayAnswer;
     _roleManager           = new RoleManager <IdentityRole>(new RoleStore <IdentityRole>());
     _log = LogManager.GetLogger(typeof(SurvayController));
 }
Пример #2
0
 public SurvayController(ISurvayService survayService, IMapper mapper, ISurvayTypeService survayTypeService,
                         IAnswerSurvayService answerSurvayService, IClientService clientService, IUserSurvayService userSurvay, IDeviceManagerService deviceManager)
 {
     _survayService       = survayService;
     _mapper              = mapper;
     _userSurvayService   = userSurvay;
     _survayTypeService   = survayTypeService;
     _answerSurvayService = answerSurvayService;
     _clientService       = clientService;
     _deviceManager       = deviceManager;
     _log = LogManager.GetLogger(typeof(SurvayController));
 }