Example #1
0
        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));
        }
Example #2
0
 public ActionResult Index()
 {
     return(this.Jsonp(DetailProductRepository.All()));
 }