示例#1
0
        public virtual ActionResult Index()
        {
            int p;

            int.TryParse(Request.QueryString["p"] ?? "1", out p);

            var result = IsListPaging
                ? InternalService.GetAll(ListPageSize, p)
                : InternalService.GetAll();

            if (IsListPaging && Request.IsAjaxRequest())
            {
                return(PartialView("IndexPartial", GenerateListViewModel(result, p)));
            }

            return(View(GenerateListViewModel(result, p)));
        }