public ActionResult Index(CriteriaModel model)
        {
            if (ModelState.IsValid)
            {
                ISystemDataProvider SystemDataProvider = new SystemDataProvider(ConfigurationManager.ConnectionStrings["IrmDbContext"].ConnectionString);
                List<char> genders = new List<char>();
                if (model.Females)
                {
                    genders.Add('F');
                }

                if (model.Males)
                {
                    genders.Add('M');
                }

                if (model.Unknowns)
                {
                    genders.Add('U');
                }

                List<string> zipCodes = model.ZipCodes.Split(',').ToList();
                if (zipCodes.Count == 0)
                {
                    zipCodes.Add(model.ZipCodes);
                }
                    DataTable t = SystemDataProvider.MailingListCounts(zipCodes, genders, model.MinAge, model.MaxAge, model.MinIncome, model.MaxIncome );
                // model.RowCount = DateTime.Now.Second;
                model.RowCount = t.Rows.Count;
            }
            return View(model);
        }
 public ActionResult Index()
 {
     CriteriaModel model = new CriteriaModel();
     return View(model);
 }