public static VocabularyTypeRepository GetVocabularyTypeRepository(IUnitOfWork unitOfWork) { var repository = new VocabularyTypeRepository(); repository.UnitOfWork = unitOfWork; return(repository); }
public VocabulariesController() { vocabularyRepository = RepositoryHelper.GetVocabularyRepository(); unitRepository = RepositoryHelper.GetUnitRepository(); vocabularyTypeRepository = RepositoryHelper.GetVocabularyTypeRepository(); }