public QuesListController( IQuesListService quesListService, ITopicService topicService, IUnitOfWork unitOfWork) : base(unitOfWork) { this.quesListService = quesListService; this.topicService = topicService; if (GlobalList.Questions.Count() == 0) { GlobalList.Questions = quesListService.GetAll(); } }
public TopicController( ITopicService topicService, IExternalResourceService externalResourceService, IMultipleChoiceService multipleChoiceService, IQuesListService quesListService, ITutorialContentService tutorialContentService, ITutorialSubtitleService tutorialsubtitleService, ITutorialTitleService tutorialTitleService, IUnitOfWork unitOfWork) : base(unitOfWork) { this.topicService = topicService; this.externalResourceService = externalResourceService; this.multipleChoiceService = multipleChoiceService; this.quesListService = quesListService; this.tutorialContentService = tutorialContentService; this.tutorialsubtitleService = tutorialsubtitleService; this.tutorialTitleService = tutorialTitleService; if (GlobalList.Topics.Count() == 0) { LoadGlobalData(); } }