showing results for - "load data dynamically on page scroll using jquery ajax and mvc"
Christopher
17 Mar 2020
1public ActionResult FetchData(int skipCount, int takeCount)
2{
3  var model = db.MyObjects.OrderBy(x => x.SomeProperty).Skip(skipCount).Take(takeCount);
4  if (model.Any())
5  {
6    return PartialView("_ResultList", model);
7  }
8  else
9  {
10    return null;
11  }
12}