示例#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");
        }
示例#3
0
        public ActionResult Typed()
        {
            var email = new TypedEmail();

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

            return(new EmailViewResult(email));
        }
示例#4
0
        public ActionResult SendTypedEmail()
        {
            var email = new TypedEmail();

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

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