public UnitOfWork(ApplicationDbContext context) { this._context = context; Categories = new CategoryRepository(_context); Producers = new ProducerRepository(_context); Roles = new RoleRepository(_context); Accounts = new AccountRepository(_context); AvatarOfProducts = new AvatarOfProductRepository(_context); Carts = new CartRepository(_context); Comments = new CommentRepository(_context); Customers = new CustomerRepository(_context); Invoices = new InvoiceRepository(_context); Orders = new OrderRepository(_context); Products = new ProductRepository(_context); ProductsOfOrders = new ProductsOfOrderRepository(_context); ProductSpecifications = new ProductSpecificationRepository(_context); SpecificationValues = new SpecificationValueRepository(_context); StarRatings = new StarRatingRepository(_context); Sellers = new SellerRepository(_context); }
public IndexModel(StarRatingRepository starratingrepository) { _starratingrepository = starratingrepository; }
public CreateModel(StarRatingRepository starratingrepository) { _starratingrepository = starratingrepository; }