c# - MVC error when trying to use model in view -



c# - MVC error when trying to use model in view -

my problem occurs when seek tell view model use. happens model though.. here model code:

using system; using system.collections.generic; using system.linq; using system.text; using system.threading.tasks; namespace com.domain.entities { public class components { } public class headermodel { public virtual string title { get; set; } public virtual string subtitle { get; set; } } }

in view when seek add together this

@model com.domain.entities.headermodel;

it gives me error:

only assignment phone call increment decrement , new object expressions can used statement

i'm not sure what's going on. help appreciated! thanks!

remove ; @ end of model declaration in view

@model com.domain.entities.headermodel

c# asp.net-mvc view model

Comments

Popular posts from this blog

java Multi query from Mysql using netbeans -

c# - DotNetZip fails with "stream does not support seek operations" -

c++ - StartServiceCtrlDispatcher don't can access 1063 error -