I want to display first five records using entity frameworks using ASP.NET MVC.
My code is below :
I want to find first 5 records. Please can anyone help.
var screens = db.AssignedScreen.Take(5).ToList();
var screens= db.AssignedScreen.ToList().Take(5);
var screens = db.AssignedScreen.OrderByDescending(c => c.arg**).Take(5).ToList();