P
P
privet_andrei1232021-01-24 20:22:59
ASP.NET
privet_andrei123, 2021-01-24 20:22:59

The site does not want to work, what's the matter?

I'm learning c# asp.net.core from the lessons of Gosha Dudor...
The error says that it's in view .cshtml complaining about an empty line with an inscription. The foreach operator does not work with variables of the CarsListViewModel type, since the CarsListViewModel does not contain an open definition of an instance or an extension for getenumerator. ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-01-24
@privet_andrei123

on the lessons of Gosha Dudor

Burn.
The foreach statement does not work with variables of type CarsListViewModel because CarsListViewModel does not contain a public instance definition or extension for getenumerator....

Please provide the original text of the error.
The error says that the type of CarsListViewModel does not implement IEnumerable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question