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