if (lstPerformanceObjectives.Count > 0) { foreach (Label update in lstPerformanceObjectives) { List<actuslibrary.midyearcustomtext> lstMid = ActusLibrary.MidYearCustomText.GetMidYearCustomTextBuCompanyId(ApConfig.CurrentCompany.CompId); if (lstMid != null) { if (update.ID == "lblCommentsonJobDescription") { string text = lstMid.FirstOrDefault(p => p.DefaultText == "Comments on Job Description").DefaultText.ToString(); // update.Text = lstMid.FirstOrDefault(p => p.DefaultText == "Comments on Job Description").UpdatedText.ToString() == null ? // lstMid.FirstOrDefault(p => p.DefaultText == "Comments on Job Description").DefaultText.ToString() : // lstMid.FirstOrDefault(p => p.DefaultText == "Comments on Job Description").UpdatedText.ToString() // ; } } } }
List1.Where(list1Obj => list1Obj.Id == list2[0].Id) .Select(list1Obj => { list1Obj.defaulttext= Convert.ToString(list2[0].UpdatedText); return AccGroupObj; }) .ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)