예제 #1
0
        // 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);
        }
예제 #2
0
 public VideoTVCController(IVideoTVCRepository videoTVCRepository)
 {
     _videoTVCRepository = videoTVCRepository;
 }
예제 #3
0
        public VideoTVCController()
        {
            var context = new VITVContext();

            _videoTVCRepository = new VideoTVCRepository(context);
        }