I'm creating a project and I want to create a frontend with bootstrap. For that, I'm using a cshtml file and I want to access and use a specific model. However, I can not access the folder where this model is. Any idea what may be the issue and how to fix it?

Can't access a folder inside Web.ViewModels
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sachin SinghRank #66 · 26.2K reputationPosted Dec 5, 2021, 12:08 AM EST
Kapil Aananth99 reputationPosted Dec 3, 2021, 5:08 AM EST
Hi,
You are currently accessing only the folders but not the Model
Replace
@model ForumProject.Web.ViewModels.posts.PostCreateInputModel
@{
//ViewData
}
By doing so You can Access the Model present inside the folder
Rositsa RusevaRank #5,080 · 312 reputationPosted Dec 4, 2021, 4:55 AM EST