I want to access the following in C# using LINQ:
var output = db.AuditLogDetails.Where(c => c.CostCenterID == id).Select(m => new History
{
CostCenterID=(int)m.CostCenterID,
CostCenterOwner=c.Owner // c is not accesible
});
I am unable to assign CostCenterOwner=c.Owner