private async Task PopularSelectList(AlbumViewModel albumViewModel) { albumViewModel.Artistas = (await _artistaService.ObterTodos()).Select(p => new SelectListItem(p.Nome, p.Id.ToString())); }
public async Task <IActionResult> Index() { return(View(await _artistaService.ObterTodos())); }