
Unexpected "foreach" keyword after "@" character.
Unexpected "foreach" keyword after "@" character. Once inside code, you do not need to prefix constructs like "foreach" with "@".


Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Laxmidhar SahooPosted Oct 31, 2018, 4:09 AM
Gaurav RajPosted Oct 31, 2018, 4:27 AM
Laxmidhar Sahoo
I have two model homeprocedure and commentprocedure .. How can i return in one viewGaurav RajPosted Oct 31, 2018, 4:03 AM
{
public IEnumerable
public Home2Procedure_Result home1 { get; set; }
public IEnumerable
}
Laxmidhar SahooPosted Oct 31, 2018, 3:56 AM
Gaurav RajPosted Oct 31, 2018, 3:32 AM
hi
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[SNetMvc.Models.Home2Procedure_Result]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[SNetMvc.Models.CommanModel]'.
Sreekanth ReddyPosted Oct 31, 2018, 3:25 AM