Пример #1
0
        public virtual ActionResult DataIPBlock(string term = "", int count = 20, int page = 0)
        {
            ViewBag.term  = term;
            ViewBag.page  = page;
            ViewBag.count = count;

            var list = _blockService.GetAllPaging(term, count, page);

            ViewBag.TotalRecords = (string.IsNullOrEmpty(term)) ? _blockService.Count : list.Count;

            return(PartialView(viewName: MVC.admin.Block.Views._DataIPBlock, model: list));
        }