Пример #1
0
        public void ModifyTranslate(ModifyTranslateDTO dto)
        {
            var translator = _repository.GetById(dto.Id);
            var language   = new LanguageBuilder().WithAbbrevation(dto.LanguageAbbr).Build();
            var phraseType = new PhraseTypeBuilder().WithName(dto.PhraseType).Build();
            var phrase     = new PhraseBuilder().WithId(dto.PhraseId).WithPhraseType(phraseType).Build();

            translator.Update(phrase, language, dto.Translation);
        }
Пример #2
0
 public Translation GetById(int id)
 {
     return(_TranslationRepository.GetById(id));
 }
 public Translation GetById(int Id)
 {
     return(_translationRepository.GetById(Id));
 }