Esempio n. 1
0
 public ActionResult Typed()
 {
     var email = new TypedEmail();
     email.Date = DateTime.UtcNow.ToString();
     
     return new EmailViewResult(email);
 }
        public ActionResult SendTypedEmail()
        {
            var email = new TypedEmail();
            email.Date = DateTime.UtcNow.ToString();
            email.Send();

            return RedirectToAction("Sent", "Home");
        }
Esempio n. 3
0
        public ActionResult Typed()
        {
            var email = new TypedEmail();

            email.Date = DateTime.UtcNow.ToString();

            return(new EmailViewResult(email));
        }
Esempio n. 4
0
        public ActionResult SendTypedEmail()
        {
            var email = new TypedEmail();

            email.Date = DateTime.UtcNow.ToString();
            email.Send();

            return(RedirectToAction("Sent", "Home"));
        }