예제 #1
0
        public ActionResult OneAccount(string id)
        {
            if (String.IsNullOrWhiteSpace(id))
            {
                return View("index", new StatByAccountViewModel());
            }

            IPQueryModel model = new IPQueryModel();
            model.SelectedUserID = id;

            model.QueryData();
            model.CountTotalRows();
            return View(model);
        }
예제 #2
0
        protected ViewResult RefreshData(bool needReFetchRecordCount, IPQueryModel model)
        {
            if (needReFetchRecordCount)
            {
                model.CountTotalRows();
                ModelState.Remove("TotalRows");
            }

            model.QueryData();
            return View(model);
        }