예제 #1
0
        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);
        }
예제 #2
0
        public ActionResult ReferANeighbor()
        {
            ReferNeighborModel model = new ReferNeighborModel();

            return View(model);
        }