public UnitOfWork(DataContext context) { this.context = context; CustomerRepository = new CustomerRepository(context); OrderRepository = new OrderRepository(context); }
public APIDbOrderController() { repo = new OrderRepository(); }
public UnitOfWork(ClientOrderContext context) { this.context = context; Orders = new OrderRepository(context); Clients = new ClientRepository(context); }