public OrderService() { this.dbContext = new OrderDbContext(); this.groupingRepository = new GroupingRepository(this.dbContext); this.itemRepository = new ItemRepository(this.dbContext); this.vendorRepository = new VendorRepository(this.dbContext); this.orderRepository = new OrderRepository(this.dbContext); }
public OrderService() { this.dbContext = new OrderDbContext(); this.groupingRepository = new GroupingRepository(this.dbContext); this.itemRepository = new ItemRepository(this.dbContext); this.vendorRepository = new VendorRepository(this.dbContext); this.orderRepository = new OrderRepository(this.dbContext); }
public GroupingController(IGroupingRepository grouping) { repository = grouping; }