Get The Differences From Two Lists

PHOTO EMBED

Fri Aug 26 2022 08:39:42 GMT+0000 (UTC)

Saved by @HristoT #c#

// We're getting the rows from the firstList that are not included in the secondList
var firstList = GetDoctorHonorariums(check.Value.DoctorID);

var secondList = form.gridControlServices.GetDataSource<HonorariumBM>().Select(x => x.service_or_cp_name).ToList();

var differences = firstList.Where(p => !secondList.Any(l => p.service_or_cp_name == l)).ToList();
content_copyCOPY