Beispiel #1
0
        public static VocabularyTypeRepository GetVocabularyTypeRepository(IUnitOfWork unitOfWork)
        {
            var repository = new VocabularyTypeRepository();

            repository.UnitOfWork = unitOfWork;
            return(repository);
        }
Beispiel #2
0
 public VocabulariesController()
 {
     vocabularyRepository     = RepositoryHelper.GetVocabularyRepository();
     unitRepository           = RepositoryHelper.GetUnitRepository();
     vocabularyTypeRepository = RepositoryHelper.GetVocabularyTypeRepository();
 }