The datos variable is an anonymous type. Although you can pass this into a view, you cannot specify a strong type for the model in the view.
If you need a strong type, create a helper object containing your properties, for example.
public class MyHelper { public string Dominio { get; set; } public string Titulo { get; set; } }
and use
select new MyHelper { Dominio = nombres.domName, Titulo = titulos.titleN };
In the view you must specify
@model IEnumerable<MyHelper> @foreach (var item in Model) // or MyHelper item in Model
source share