Exemplo n.º 1
0
        public void GetDescriptionForModal(String key)
        {
            var uow = new VocabularyUow(new VocabularyDbContext());
            IVocabularyService vocabularyService = new VocabularyService(uow);

            Word word = vocabularyService.GetByKey(key);
            Clients.PublishDescriptionForModal(word);
        }
Exemplo n.º 2
0
        public void GetDescription(String key)
        {
            var uow = new VocabularyUow(new VocabularyDbContext());
            IVocabularyService vocabularyService = new VocabularyService(uow);

            Word word = vocabularyService.GetByKey(key);
            Clients.PublishDescription(word.Key, word.Theme, word.Description);
        }