
comment résoudre le problème de connexion entre le projet et bdd


Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Gowtham CpPosted Oct 15, 2024, 6:29 AM
Hi,
The issue happens because your view expects a model of type
Stat.Models.IndexViewModel, but it's gettingStat.Models.Situation. To fix it, check your controller and make sure you're passing the correct model. For example:Or, if the view should use
Situation, update the view like this:Just make sure the model type in your controller and view match, and the error should be resolved.
Hope this helps!