I want to filter duplicate id from a list using **linq
, here is the code:**
foreach (var item in _VMReturnStock.scmDistReturnDetails.ToList())
{
}
I have ids in scmDistReturnDetails
, what should I do in this case? And on the basis of duplicate id I have to set model state false.**