public ExternalResourceController( IExternalResourceService externalResourceService, IUnitOfWork unitOfWork) : base(unitOfWork) { this.externalResourceService = externalResourceService; if (GlobalList.ExternalResources.Count() == 0) { GlobalList.ExternalResources = externalResourceService.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(); } }