Hide Copy Code
var ranks = _service.GetAllEmployeeDuty().OrderByDescending(x => x.EndDate)
.GroupBy(x => x.Employee_Id).Select(x => x.First()
).Where(x => x.ToSector_Id == sectorId).ToList();
var ranks = _service.GetAllEmployeeDuty().OrderByDescending(x => x.EndDate)
.GroupBy(x => x.Employee_Id).Select(x => x.First()
).Where(x => x.ToSector_Id == sectorId).ToList();
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Apr 24, 2015, 3:32 PM
1
2
3