Exemple #1
0
 public UnitOfWork(CogShareContext context)
 {
     _context          = context;
     Docs              = new DocumentationRepository(_context);
     ExternalProjects  = new ExternalProjectRepository(_context);
     Hardware          = new HardwareRepository(_context);
     PersonalProjects  = new PersonalProjectRepository(_context);
     SoftwareLibraries = new SoftwareLibraryRepository(_context);
     Software          = new SoftwareRepository(_context);
     CogShareUsers     = new CogShareUserRepository(_context);
 }
Exemple #2
0
 public DocumentationService(DocumentationRepository documentationRepository)
 {
     _documentationRepository = documentationRepository;
 }