public bool CreateResearcher([Service] IResearcherRepository repo, string name) { CreateResearcherCommand createCommand = new CreateResearcherCommand(repo, name); createCommand.Execute(); return(true); }
public ReadResearcherWithCategoriesHandler(IUnitOfWork unitOfWork) { if (unitOfWork == null) { throw new ArgumentNullException(); } this._unitOfWork = unitOfWork; this._researcherRepository = this._unitOfWork.ResearcherRepository; }
public ReadAllResearchersWithEverythingHandler(IUnitOfWork unitOfWork) { if (unitOfWork == null) { throw new ArgumentNullException(nameof(unitOfWork)); } this._unitOfWork = unitOfWork; this._researcherRepository = this._unitOfWork.ResearcherRepository; }
public UpdateResearcherHandler(IUnitOfWork unitOfWork) { if (unitOfWork == null) { throw new ArgumentNullException(); } this._unitOfWork = unitOfWork; this._researcherRepository = this._unitOfWork.ResearcherRepository; this._relationsRepository = this._unitOfWork.RelationsRepository; }
private void resetRepositories() { this._userRepository = null; this._categoryRepository = null; this._organisationRepository = null; this._projectRepository = null; this._relationsRepository = null; this._researcherRepository = null; this._activityRepository = null; this._titleRepository = null; }
public CreateResearcherCommand(IResearcherRepository researcherRepository, string name) { this.researcherRepository = researcherRepository; this.name = name; }
public IEnumerable <Researcher> GetResearchers([Service] IResearcherRepository repo) { return(repo.GetAll()); }