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); }
public Translation GetById(int id) { return(_TranslationRepository.GetById(id)); }
public Translation GetById(int Id) { return(_translationRepository.GetById(Id)); }