public UnitOfWork(GoCafeContext context) { Account = new AccountRepository(context); Product = new ProductRepository(context); Category = new CategoryRepository(context); Bill = new BillRepository(context); InfoBill = new InfoBillRepository(context); _context = context; }
public UnitOfWork(HotelContext context) { Rooms = new RoomRepository(context); RoomTypes = new RoomTypeRepository(context); Customers = new CustomerRepository(context); Contracts = new ContractRepository(context); Employers = new EmployerRepository(context); ServiceRooms = new ServiceRepository(context); Bills = new BillRepository(context); ContractDetails = new ContractDetailRepository(context); _context = context; }