public JsonResult GetGoods(int page, int rows, long catId = 0, string searchName = "")
        {
            var pager = GoodsBll.GetPager(page, rows, UserContext.CurrentUser.HotelId, catId, searchName);

            //var pager = GoodsBll.GetPager(page, rows, UserContext.CurrentUser.HotelId, catId, searchName);
            return(Json(pager));
        }
예제 #2
0
        public string GetPager(int page, int rows, long catId = 0, string searchName = null)
        {
            var pager = GoodsBll.GetPager(page, rows, UserContext.CurrentUser.HotelId, catId, searchName);

            return(JsonConvert.SerializeObject(pager));
        }