Ejemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <SimilarTranslation> > > FindSimilarTranslations(Guid currentProjectId, Guid localeId, [FromBody] TranslationSubstring translationSubstring)
        {
            var  identityName = User.Identity.Name;
            Guid userId       = (Guid)userRepository.GetID(identityName);

            var similarTranslations = await translationRepository.GetSimilarTranslationsAsync(currentProjectId, localeId, translationSubstring, userId);

            return(Ok(similarTranslations));
        }