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); }
public DocumentationService(DocumentationRepository documentationRepository) { _documentationRepository = documentationRepository; }