public HomeController() { _repositoryBanner = new BannerDAO(); _repositoryVideos = new VideosDAO(); _repositoryPartner = new PartnershipDAO(); _repositryNav = new NavigationDao(); _vm = new HomeVM(); }
public TechnicalController() { _reposVideo = new VideosDAO(); IRepositryBase <Fly_Navigation> repositryNav = new NavigationDao(); _repositoryPartner = new PartnershipDAO(); _vm = new TechnicalVm(); List <Fly_Navigation> listNav = repositryNav.getAllItems().ToList(); ViewData[StaticVariable.Navigation] = listNav; }
public ProductController() { _reposProduct = new ProductDAO(); _repositoryPartner = new PartnershipDAO(); _reposVideo = new VideosDAO(); _repositoryUser = new CustomerDAO(); _repositryNav = new NavigationDao(); _vm = new ProductsVM(); List <Fly_Navigation> listNav = _repositryNav.getAllItems().ToList(); ViewData[StaticVariable.Navigation] = listNav; }
//VideosDAO repository = new VideosDAO(); //PositionGalleryDAO posGallery = new PositionGalleryDAO(); //SectionContentDAO secContentDAO = new SectionContentDAO(); public VideoController() { _vm = new VideoVM(); _repository = new VideosDAO(); _repositoryPos = new PositionGalleryDAO(); }