Esempio n. 1
0
        public ActionResult Index(ContactViewModel viewmodel)
        {
            if (ModelState.IsValid)
            {
                if (viewmodel.CaptchaIsValid())
                {
                    var emailService = new EmailService();
                    emailService.SendContactMessage(viewmodel);
                }
                return(RedirectToAction("MensajeEnviado"));
            }

            return(View(viewmodel));
        }