protected override void OnLoad(EventArgs e) { base.OnLoad(e); var data = CPProfile.ComplianceVisits; _history.DataSource = data == null ? null : data.Visits; _history.MessageIDDataSource = CmoAuditReview.GetComplianceVisitMessageIDs(CPProfile.Cid, CPProfile.ElectionCycle); _history.DataBind(); }
// GET: Audit/ComplianceVisits public ActionResult Index() { return(View(AuditViewModelFactory.ComplianceVisitsFrom(CPProfile.ComplianceVisits, CmoAuditReview.GetComplianceVisitMessageIDs(CPProfile.Cid, CPProfile.ElectionCycle)))); }