Пример #1
0
 public OrderController()
 {
     CustomerRepository = new CustomerRepository();
     InventoryRepository = new InventoryRepository();
     OrderRepository = new OrderRepository();
     EmailLibrary = new EmailLibrary();
 }
Пример #2
0
 public OrderController(
     CustomerRepository customerRepository,
     OrderRepository orderRepository,
     InventoryRepository inventoryRepository,
     EmailLibrary emailLibrary)
 {
     CustomerRepository = customerRepository;
     OrderRepository = orderRepository;
     InventoryRepository = inventoryRepository;
     EmailLibrary = emailLibrary;
 }