I have the following code in c #:
List<Usuario> ret = new List<Usuario>();
UsuarioRepositorio repositorio = new UsuarioRepositorio();
var dtos = repositorio.Seleccionar();
foreach(dtos)
{
ret.Add(dtos);
}
return ret;
As you can see, I have a List called ret
and dtos is a List DTO that receives the values of the Seleccionar()
method. But I would like to know how to travel or map data to store it in ret, and then return it.