コード例 #1
0
ファイル: PreviewController.cs プロジェクト: auswm85/postal
 public ActionResult Typed()
 {
     var email = new TypedEmail();
     email.Date = DateTime.UtcNow.ToString();
     
     return new EmailViewResult(email);
 }
コード例 #2
0
        public ActionResult SendTypedEmail()
        {
            var email = new TypedEmail();
            email.Date = DateTime.UtcNow.ToString();
            email.Send();

            return RedirectToAction("Sent", "Home");
        }
コード例 #3
0
ファイル: PreviewController.cs プロジェクト: zapalap/postal
        public ActionResult Typed()
        {
            var email = new TypedEmail();

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

            return(new EmailViewResult(email));
        }
コード例 #4
0
ファイル: EmailController.cs プロジェクト: zapalap/postal
        public ActionResult SendTypedEmail()
        {
            var email = new TypedEmail();

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

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