예제 #1
0
        public ActionResult Contact(ContactViewModel model)
        {
            if (ModelState.IsValid)
            {
                _db.SaveEmailTransmission(model.Name, model.EmailAddress, model.Body, model.UserWebSite);
                return RedirectToAction("RedirectingSubscription", "Redirect");
            }

            //Something went wrong
            return View(model);
        }
예제 #2
0
 public ActionResult Contact()
 {
     ContactViewModel model = new ContactViewModel();
     return View(model);
 }