asp-net notation does not recognise attribute notation from a model class
My Rider flagged this ListingImage notation as unrecognisable in cshtml
This ListingImage came from this model class
I think this error is a beginner's mistake, I miss out something. But I need your help to find out why my cshtml does not recognise ListingImage from the model class. Could anyone point me in the right direction?
For your reference my full code https://paste.mod.gg/aplkygbhtnqj/0
BlazeBin - aplkygbhtnqj
A tool for sharing your source code with the world!
2 Replies
Do you have
@model
declared in the view?Unknown User•2w ago
Message Not Public
Sign In & Join Server To View