// If you are using Dependency Injection, you can delete the following constructor public VideoCategoryController() { var context = new VITVContext(); _videocategoryRepository = new VideoCategoryRepository(context); _videoRepository = new VideoRepository(context); _catGroupRepository = new VideoCatGroupRepository(context); _catTypeRepository = new VideoCatTypeRepository(context); _catIntroRepository = new CategoryIntroRepository(context); _tvcRepository = new VideoTVCRepository(context); _pageGroupRepository = new PageGroupRepository(context); _videoCatSponsorRepository = new VideoCatSponsorRepository(context); }
public VideoTVCController(IVideoTVCRepository videoTVCRepository) { _videoTVCRepository = videoTVCRepository; }
public VideoTVCController() { var context = new VITVContext(); _videoTVCRepository = new VideoTVCRepository(context); }