public JsonResult Read(int skip, int take) { IEnumerable <DetailProductModel> result = DetailProductRepository.All().OrderByDescending(p => p.ProductID); result = result.Skip(skip).Take(take); return(this.Jsonp(result)); }
public ActionResult Index() { return(this.Jsonp(DetailProductRepository.All())); }