Example #1
0
 public UnitOfWork(BookServiceContext context)
 {
     _context           = context;
     Books              = new BookRepository(_context);
     Users              = new UserRepository(_context);
     UserBooks          = new UserBookRepository(_context);
     RegisteredApiUsers = new RegisteredApiUserRepository(_context);
 }