Esempio n. 1
0
        public UnitOfWork(ApplicationDbContext context)
        {
            _context       = context;
            ProductDetails = new ReservationDetailsRepository(_context);
            Products       = new ProductRepository(_context);

            ProductCategories = new ProductCategoryRepository(_context);

            Services = new ServiceRepository(_context);

            ServiceCategories = new ServiceCategoryRepository(_context);

            Departments = new DepartmentRepository(_context);

            Menus = new MenuRepository(_context);

            SubMenus = new SubMenuRepository(_context);

            OurTeams = new OurTeamRepository(_context);

            Designations = new DesignationRepository(_context);

            Faq = new FaqRepository(_context);

            Client = new ClientRepository(_context);

            Blogs = new BlogRepository(_context);

            ContactUs = new ContactUsRepository(_context);

            Companies = new CompanyRepository(_context);

            Banner = new BannerRepository(_context);

            ChooseUs = new WhyChooseUsRepository(_context);

            ClientProducts = new ClientProductRepository(_context);

            AboutUs = new AboutUsRepository(_context);

            HostingPlan = new HostingPlanRepository(_context);

            CustomerReview = new CustomerReviewRepository(_context);

            Career = new CareerRepository(_context);

            Job = new JobRepository(_context);

            Softwares = new SoftwareRepository(_context);

            SoftwareCategories = new SoftwareCategoriesRepository(_context);

            Features = new FeaturesRepository(_context);

            BlogComment = new BlogCommentRepository(_context);

            QueryHelper = new QueryHelper();
        }
Esempio n. 2
0
 public HomeController(StaticContentDetailsRepository contentRepo, FaqRepository faqRepo, ProjectsRepository projectRepo, PartnersRepository partnerRepo, TestimonialsRepository testimonialRepo, ContactFormsRepository contactFormRepo, ArticleCategoriesRepository articleCategoriesRepo, OurTeamRepository ourTeamRepo)
 {
     _contentRepo           = contentRepo;
     _faqRepo               = faqRepo;
     _projectRepo           = projectRepo;
     _partnerRepo           = partnerRepo;
     _testimonialRepo       = testimonialRepo;
     _contactFormRepo       = contactFormRepo;
     _articleCategoriesRepo = articleCategoriesRepo;
     _ourTeamRepo           = ourTeamRepo;
 }
 public HomeController(StaticContentDetailsRepository contentRepo, GalleriesRepository galleryRepo, TestimonialsRepository testimonialRepo, ContactFormsRepository contactFormRepo, OurTeamRepository ourTeamRepo, CertificatesRepository certificatesRepo, FoodGalleriesRepository foodGalleriesRepo, GalleryVideosRepository galleryVideosRepo)
 {
     _contentRepo       = contentRepo;
     _galleryRepo       = galleryRepo;
     _testimonialRepo   = testimonialRepo;
     _contactFormRepo   = contactFormRepo;
     _ourTeamRepo       = ourTeamRepo;
     _certificatesRepo  = certificatesRepo;
     _foodGalleriesRepo = foodGalleriesRepo;
     _galleryVideosRepo = galleryVideosRepo;
 }
Esempio n. 4
0
 public OurTeamController(OurTeamRepository repo)
 {
     _repo = repo;
 }