Gaurav Raj

Gaurav Raj

  • NA
  • 475
  • 88.7k

how can use more than one model in single view?

Sep 14 2018 9:01 AM
i am try this  code but not this work
public class Comman_Model
{
public List<Home2Procedure_Result> Home;
public Home2Procedure_Result home1;
public CommentsProcedure_Result comment;
}
@model IEnumerable<SocialNetMvc.Models.Comman_Model> 
 
@foreach (var item in Model.Home)
{
 
}
but i got error 
does not contain defination of home
 
I am already create strore procedure of home 
in model
please help me guuyss......

Answers (3)