User1253338400 posted
Hi ,
I have a list which i have populated and returned to my controller. (the primary list)
I also have a second list which are new entries to decide if they are to be added to the primary list or update existing value in the primary list.
foreach (var obj in mydataTest)
{
if (primaryList.Any(x => x.Id == "1" && x.objectType == obj.ObjectTye && x.Name == obj.Name && x.Address == item.Address
))
{
//it exists in the primary list so just do an update ??
}
}
}
How can i update the values in the primarylist with values from the mydataTest list ?
thanks