public ActionResult EmailAll(MassEmail model) { if (ModelState.IsValid) { model.Message = model.Message.UserInputToHtml(); model.ToEmail = GetRepository<User>().All().Where(u=>u.Live ==true).ToList(); //Send out mass email EmailBuilder.SendHtmlMultiUserEmail(model); return Redirect("/System"); } return View(model); }
public ActionResult EmailAll() { var model = new MassEmail(); model.ToEmail = GetRepository<User>().All().ToList(); return View(model); }