📅  最后修改于: 2022-03-11 15:02:23.235000             🧑  作者: Mango
public ActionResult FetchData(int skipCount, int takeCount)
{
var model = db.MyObjects.OrderBy(x => x.SomeProperty).Skip(skipCount).Take(takeCount);
if (model.Any())
{
return PartialView("_ResultList", model);
}
else
{
return null;
}
}