示例#1
0
 public ActionResult Contact(Contact model)
 {
     if (ModelState.IsValid)
     {
         if (EmailBuilder.SendContactFormEmail(model))
         {
             return Redirect("ThankYou");
         }
         return Redirect("Failed");
     }
     else
     {
         return View(model);
     }
 }
示例#2
0
 public ActionResult Contact()
 {
     var model = new Contact();
     return View(model);
 }