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