public ActionResult Contact() { //ViewBag.Message = "Your contact page."; var vm = new ContactFormModel(); vm.Init(); return View(vm); }
public ActionResult Contact(ContactFormModel model) { //string Text = "<html> <head> </head>" + //" <body style= \" font-size:12px; font-family: Arial\">" + //Model.Message + //"</body></html>"; SendEmail(model); var vm = new ContactFormModel(); vm.Init(); ModelState.Clear(); return View(vm); }