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);
        }
Example #2
0
        protected ViewResult RefreshData(bool needReFetchRecordCount, IPQueryModel model)
        {
            if (needReFetchRecordCount)
            {
                model.CountTotalRows();
                ModelState.Remove("TotalRows");
            }

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