Пример #1
0
        private async Task PopulateSelectAutores(int?autorId = null)
        {
            var autores = await _autorAppService.GetAllAsync(null);

            ViewBag.Autores = new SelectList(
                autores,
                nameof(AutorViewModel.Id),
                nameof(AutorViewModel.AutorNomeCompleto),
                autorId); //TODO: Exibir Nome + sobrenome + id
        }
Пример #2
0
 // GET: Autor
 public async Task <IActionResult> Index()
 {
     return(View(await _autorAppService.GetAllAsync(null)));
 }