@using can not find a folder that exists and the path is correct

Viewed 18

In asp.net core I am trying to add a folder with @using in my _ViewImports.cshtml, however it seems that it is invisible to it, even though there is absolutely no reason for it to be invisible.

Visual Studio solution and _ViewImports.cshtml

1 Answers

For some reason the namespace was incorrect. Changing the namespace in the BecomeDealerFormModel.cs from OnlineCardShop.Models to OnlineCardShop.Models.Dealers fixed it.

Related