public async Task <IActionResult> Index() { Dev_Gen_QueryViewModel devGenQVM = new Dev_Gen_QueryViewModel(); try { List <GeneroDTO> generos = await _generoService.GetGeneros(); List <DesenvolvedorDTO> desenvolvedores = await _desenvolvedorService.GetDesenvolvedores(); devGenQVM.Generos = generos.ToViewModel <GeneroDTO, GeneroQueryViewModel>(); devGenQVM.Desenvolvedores = desenvolvedores.ToViewModel <DesenvolvedorDTO, DesenvolvedorQueryViewModel>(); return(View(devGenQVM)); } catch (Exception) { return(View()); } }