i have gridview control with a checkbox on it
When i hit on save button i able to find the checkbox which have been checked and i able to do it so far so good but the pr
You want something like this:
var diff = selectedEmployee.Except(listFromDb, (a,b)=>a.id==b.id);
foreach (Employee e in diff)
{
EmployeeService.SaveEmployee(e.Id, e.Name);
}
but you're awful short on particulars. What defines a change? How will match items in the list: by id? Can you be more exact with your requirements?