public ProductController() { productContext = new Repositories.ProductContext(db); productRepository = new Repositories.ProductRepository(db); userContext = new Repositories.UserContext(db); userRepository = new Repositories.UserRepository(db); }
public OrderRepository(DAL.ServiceContext db) { orderContext = new OrderContext(db); userContext = new UserContext(db); productContext = new ProductContext(db); }