Reputation: 27996
I am working on an asp.net application and I have created a folder named Models inside it. I have a class named instructor in it. I am creating a partial view and making it strongly typed with this statement
@model RazorView.Models.Instructor
But I am getting this error :
The type name 'Models' does not exist in the type 'System.Web.Mvc.RazorView'
public class _Page_Views_Home_Index_cshtml : System.Web.Mvc.WebViewPage> {
How can I fix it?
Upvotes: 1
Views: 1208
Reputation: 20617
You need to change your Namespace, RazorView is used by System.Web.Mvc.
Upvotes: 4