Ejemplo n.º 1
0
        public ActionResult Send()
        {
            var email = new ImportantEmail
            {
                To = "*****@*****.**",
                Message = "This is important!"
            };
            emailService.Send(email);

            return RedirectToAction("sent");
        }
Ejemplo n.º 2
0
        public ActionResult Send()
        {
            var email = new ImportantEmail
            {
                To      = "*****@*****.**",
                Message = "This is important!"
            };

            emailService.Send(email);

            return(RedirectToAction("sent"));
        }