public SurveyController(IShapeFactory shapeFactory,
     IOrchardServices orchardServices,
     ILiveoSurveyService surveyService) {
     Shape = shapeFactory;
     _orchardServices = orchardServices;
     _surveyService = surveyService;
 }
Exemplo n.º 2
0
        public SurveyHandler(IRepository<SurveyRecord> repository,
            ILiveoSurveyService surveyService) {
            Filters.Add(StorageFilter.For(repository));
            _liveoSurveyService = surveyService;

            OnLoaded<SurveyPart>((context, part) => {
                                     // load up the survey with it...
                                     part.Survey = _liveoSurveyService.GetById(part.SurveyId);
                                 });
        }