-2
I have a collection and inside I have another collection of images. I need to do a chained foreach to get information from the first collection, and then the second foreach to get the images I have referring to the first looping.
Here is my code:
@foreach ( var item in Model )
{
<div class="title-pagina-interna">
<h2>@item.Titulo</h2>
</div>
<div class="container-carrossel">
@foreach (Imagem teste in item.Thumb)
But the following error is returning to me:
foreach statement cannot Operate on variables of type 'Webprovider.Mbw_incentivo.domain.Models.Imagem' because 'Webprovider.Mbw_incentivo.domain.Models.Imagem' does not contain a public Definition for 'Getenumerator'
How can I fix this?
A good start would be formatting the question better, and pasting the code into the text. Read here how to format your code: http://answall.com/editing-help
– Bacco