![This response has been marked as answer. Resolved](/images/dnfresolved.gif)
@Kasani007 Sir, you can simply use the MAX and MIN function of the collection e.g.
var intList = new List<int>() { 1, 2, 3, 4, 4, 5, 67, 7, 8 };
// By using the max, min function of the generic collection
var max_minIDs = new { MaxID = intList.Max(), MinID = intList.Min() };
Result
-----------
MaxID=67, MinID=1
--
Thanks & Regards,
RNA Team
Kasani007, if this helps please login to Mark As Answer. | Alert Moderator