public ActionResult EmailReport(EmailReportVM model) { if (ModelState.IsValid) { List <EmailReportDT> emailReport = new List <EmailReportDT>(); ViewBag.data = SitesManager.GetEmailReport(model.ReferrerId, model.ReportType == "ACTIVE", model.StartDate, model.EndDate); } model.Referrers = SitesManager.GetReferrers(); return(View(model)); }