hi
i post the Code Check the Particular Data with List Collection.
public ActionResult Edit(int id)
{
objCl = lstRec();
List<EmpClass> lstRempE = new List<EmpClass>();
foreach (var obj1 in objCl)
{
if (obj1.Id == id)
{
lstRempE.Add(new EmpClass { Id =obj1.Id, Ename = obj1.Ename, Empno =obj1.Empno, Amt =obj1.Amt});
}
}
return View(lstRempE);
}