load data dynamically on page scroll using jquery ajax and mvc
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;
}
}