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

            _pageIndex = _pageIndex ?? 1;
            var entity = _services.GetVanBan(null, null, null, Id, "Document", _languageId, false, _pageIndex, 10);

            _totalRecord        = entity.TotalRecord;
            ViewBag.TotalRecord = _totalRecord.ToString();
            ViewBag.TotalPage   = entity.Total;
            ViewBag.PageIndex   = _pageIndex ?? 1;
            ViewBag.CurentUrl   = _url;
            var entitys = _services.GetVanBan(null, null, null, Id, "cvanbanphapluat", _languageId, false, null, null);

            ViewBag.ListItem = entitys.Contents.ToList();
            return(PartialView(entity.Contents));
        }