Exemple #1
0
 public UnitOfWork(ApplicationDbContext context)
 {
     _context           = context;
     Tickets            = new TicketRepository(_context);
     TicketStatuses     = new TicketStatusRepository(_context);
     TicketResolutions  = new TicketResolutionRepository(_context);
     TicketComments     = new TicketCommentRepository(_context);
     TicketPriorities   = new TicketPriorityRepository(_context);
     TicketTypes        = new TicketTypeRepository(_context);
     Projects           = new ProjectRepository(_context);
     TicketActivityLogs = new TicketActivityLogRepository(_context);
     ProjectStatuses    = new ProjectStatusRepository(_context);
 }