Beispiel #1
0
        public ActionResult Contact()
        {
            //ViewBag.Message = "Your contact page.";
            var vm = new ContactFormModel();
            vm.Init();

            return View(vm);
        }
Beispiel #2
0
        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);
        }