@{
}
Index
@foreach(var item in Model.Particularslist)
{
}
I am getting error in Model.
Dont now why.Any help will be greatly appreciated
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.
Sandip G PatilPosted Feb 7, 2017, 2:32 AM
Chetan RanpariyaPosted Jan 9, 2017, 11:38 AM
Sourabh ChoubeyPosted Jan 9, 2017, 11:09 AM
Chetan RanpariyaPosted Jan 9, 2017, 10:57 AM
Mangesh GPosted Jan 9, 2017, 9:46 AM
Sourabh ChoubeyPosted Jan 9, 2017, 9:01 AM
@{
}
@foreach(var item in Model.Particularlist)
{
////
}
{
ParticularsBl objparticulars = new ParticularsBl();
ParticularsModel objmodelparticulars = new ParticularsModel();
var listparticulars = objparticulars.GetParticularsList();
objmodelparticulars.ListParticulars = listparticulars.Select(x =>
{
return new ParticularsModel
{
ID=x.ID,
Date=x.Date,
ParticularsName=x.Particulars,
TotalAmount=x.TotalAmount,
};
}).OrderBy(x => x.ID).ToList();
return View(objmodelparticulars);
}
Sourabh ChoubeyPosted Jan 9, 2017, 8:59 AM
@{
}
@foreach(var item in Model.Particularlist)
{
////
}
{
ParticularsBl objparticulars = new ParticularsBl();
ParticularsModel objmodelparticulars = new ParticularsModel();
var listparticulars = objparticulars.GetParticularsList();
objmodelparticulars.ListParticulars = listparticulars.Select(x =>
{
return new ParticularsModel
{
ID=x.ID,
Date=x.Date,
ParticularsName=x.Particulars,
TotalAmount=x.TotalAmount,
};
}).OrderBy(x => x.ID).ToList();
return View(objmodelparticulars);
}
Mangesh GPosted Jan 9, 2017, 7:34 AM
Salman BegPosted Jan 9, 2017, 6:12 AM
Sourabh ChoubeyPosted Jan 9, 2017, 5:30 AM
Mangesh GPosted Jan 9, 2017, 1:47 AM
Ranjit PowarPosted Jan 9, 2017, 1:33 AM
Sourabh ChoubeyPosted Jan 9, 2017, 1:21 AM
Ranjit PowarPosted Jan 9, 2017, 1:12 AM
Sourabh ChoubeyPosted Jan 9, 2017, 12:37 AM
Salman BegPosted Jan 9, 2017, 12:17 AM