Hi @Basit Nisar,
I think I see what you mean, you can do it with linq statements.
You can refer to the code below, because I don't know your CIPHApprovedPutModel class, I just wrote the format of the linq statement, you need to change the fields according to your own code.
List<CIPHApprovedPutModel> timeSheetApprovedView = new List<CIPHApprovedPutModel>();
var DataList = (from b in timeSheetApprovedView
where b.LastModifiedDate == _LastModifiedDateTC
select b).ToList();
foreach (var userData in DataList)
{
timeSheetApprovedView.Add(new CIPHApprovedPutModel()
{
Id = userData.Id,
LastModifiedDate = userData.LastModifiedDate,
});
}
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.