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# - ASP.NET MVC Sequence contains no matching element -

java - Parsing XML, skip certain tags -

rest - How to invalidate user session on inactivity in a stateless server? -