I have the following method:
public List<AnfitrionDto> Seleccionar()
{
List<AnfitrionDto> ret = new List<AnfitrionDto>();
VisitantesEntities db = new VisitantesEntities();
Anfitrion[] registros = db.SpAnfitrionConsultar();
foreach (var registro in registros)
{
ret.Add(AnfitrionAdaptador.ConvertirADto(registro));
}
return ret;
}
In which I make the call of an SP named SpAnfitrion Consult, but it shows me the following error:
Is it possible to convert an Object result into an Arrangement in C #? I think that's the problem I have.