public HomeController(IProjectRepository repositoryProject, IDeveloperRepository repositoryDeveloper, IProjectDeveloperRepository repositoryProjectDeveloper) { this.projectRepository = repositoryProject; this.developerRepository = repositoryDeveloper; this.projectDeveloperRepository = repositoryProjectDeveloper; // db = context; }
public UnitOfWork( EfDbContext context, IProjectRepository projectRepository, IAccountRepository accountRepository, IDeveloperRepository developerRepository, IProjectDeveloperRepository projectDeveloperRepository) { _dbContext = context; ProjectRepository = projectRepository; AccountRepository = accountRepository; DeveloperRepository = developerRepository; ProjectDeveloperRepository = projectDeveloperRepository; }