public ExtendedRolesProvider()
 {
     _roleFeaturesRepository = new RoleFeaturesRepository(new DatabaseFactory());
     _featuresRepository     = new FeaturesRepository(new DatabaseFactory());
     _basicRepository        = new BasicRepository(new DatabaseFactory());
     _employeeRepository     = new EmployeeRepository(new DatabaseFactory());
     _driverRepository       = new DriverRepository(new DatabaseFactory());
 }
示例#2
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();
        }
 public FeaturesDirector(BaseRepository <Feature> repository)
 {
     _repository = repository as FeaturesRepository;
 }
 public FeaturesService()
 {
     _featuresRepository = new FeaturesRepository();
 }
示例#5
0
 public FeaturesController(FeaturesRepository repo)
 {
     _repo = repo;
 }