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

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -