Exemplo n.º 1
0
        public async Task <IActionResult> Translate()
        {
            var translations = await _translationRepository.GetTranslationsAsync();

            ViewData["translations"] = new SelectList(translations, "Id", "Language");
            return(View());
        }
 // GET: Translations
 public async Task <IActionResult> Index()
 {
     return(View(await _translationRepository.GetTranslationsAsync()));
 }