I have the following query.
var ComplaintsQuery = _context.TblComplaints.Select(p => new { ComplaintId = p.ComplaintId, ClientId =