Exemplo n.º 1
0
 public OrderController()
 {
     CustomerRepository = new CustomerRepository();
     InventoryRepository = new InventoryRepository();
     OrderRepository = new OrderRepository();
     EmailLibrary = new EmailLibrary();
 }
Exemplo n.º 2
0
 public OrderController(
     CustomerRepository customerRepository,
     OrderRepository orderRepository,
     InventoryRepository inventoryRepository,
     EmailLibrary emailLibrary)
 {
     CustomerRepository = customerRepository;
     OrderRepository = orderRepository;
     InventoryRepository = inventoryRepository;
     EmailLibrary = emailLibrary;
 }