public IActionResult Index() { var model = new List <RecursoListaModel>(); var objs = _recursoService.ObtemTodos(); objs.ToList().ForEach(x => model.Add(new RecursoListaModel() { Id = x.Id, Nome = x.Nome, Email = x.Email })); return(View(model)); }