Пример #1
0
 public HomeController(IAdvertiseRepository AdvertiseRepository, IKhoborRepository KhoborRepository, IKhoborHomeRepository KhoborHomeRepository, IPhotoGalleryRepository PhotoGalleryRepository)
 {
     this.repository = AdvertiseRepository;
     this.repositoryKhobor = KhoborRepository;
     this.repositoryKhoborHome = KhoborHomeRepository;
     this.repositoryPhotoGallery = PhotoGalleryRepository;
 }
        private void Dispose(bool dispose)
        {
            if (dispose)
            {
                if (_departmentRepository != null)
                {
                    //_connection.Dispose();
                    _departmentRepository = null;
                }

                if (_archiveRepository != null)
                {
                    //_connection.Dispose();
                    _archiveRepository = null;
                }
                if (_eventRepository != null)
                {
                    _eventRepository = null;
                }
                if (_imageRepository != null)
                {
                    _imageRepository = null;
                }
                if (_imgPhotoGalleryRepository != null)
                {
                    _imgPhotoGalleryRepository = null;
                }
                if (_photoGalleryRepository != null)
                {
                    _photoGalleryRepository = null;
                }
                if (_videoRepository != null)
                {
                    _videoRepository = null;
                }
                if (_instance != null)
                {
                    _instance = null;
                }
            }
        }
 public PhotoGalleriesController(IPhotoGalleryRepository PhotoGalleryRepository)
 {
     this.repository = PhotoGalleryRepository;
 }
 public PhotoGalleryManager(IPhotoGalleryRepository _repository)
 {
     repository = _repository;
 }
Пример #5
0
 public PhotoGalleryController(IAdvertiseRepository AdvertiseRepository, IPhotoGalleryRepository PhotoGalleryRepository)
 {
     this.repository = AdvertiseRepository;
     this.repositoryPhotoGallery = PhotoGalleryRepository;
 }