示例#1
0
        public ActionResult ContactUs(ContactUsViewModel contactVm)
        {
            if (!ModelState.IsValid)
            {
                return View(contactVm);
            }

            var message = new Message
            {
                Body = contactVm.Body,
                Subject = contactVm.Subject,
                FromAddress= contactVm.EmailFrom
            };

            ProcessContactUs(message);

            return this.RedirectToAction<HelpController>(c=>c.ContactConfirm());
        }
示例#2
0
        public ActionResult ContactUs()
        {
            var viewModel = new ContactUsViewModel();

            return View(viewModel);
        }