Ejemplo n.º 1
0
        public ActionResult getChildDisplay(int Id, string _url, int?_pageIndex)
        {
            try
            {
                _languageId = (int)Session["languageId"];
            }
            catch
            {
            }
            int _totalRecord = 0;

            _pageIndex = _pageIndex ?? 1;
            var entity = _services.GetAll3(Id, _languageId, _pageIndex, 10);

            _totalRecord        = entity.TotalRecord;
            ViewBag.TotalRecord = _totalRecord.ToString();
            ViewBag.TotalPage   = entity.Total;
            ViewBag.PageIndex   = _pageIndex ?? 1;
            ViewBag.CurentUrl   = _url;
            return(PartialView(entity.Contents.OrderBy(x => x.isSort)));
        }