예제 #1
0
 public ViewResult Contact(ContactModel contactModel)
 {
     if (ModelState.IsValid)
         return View("Thanks", contactModel);
     else
         return View();
 }
 public ViewResult Contact(ContactModel contactModel)
 {
     if (IsBadBrowser()) return View("BadBrowser");
     if (ModelState.IsValid)
         return View("Thanks", contactModel);
     else
         return View();
 }