public ActionResult ReferANeighbor(ReferNeighborModel model, bool captchaValid) { if (!captchaValid) { ModelState.AddModelError("", "Wrong Captcha code."); } if (ModelState.IsValid) { model.Result = true; _workflowMessageService.SendReferANeighborMessage(model.FriendName, model.FriendEmail, model.YourName); } return View(model); }
public ActionResult ReferANeighbor() { ReferNeighborModel model = new ReferNeighborModel(); return View(model); }