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)); }