Пример #1
0
 public ViewResult Index(SomeModel model)
 {
     throw new MyApplicationException("Error on form submit.")
           {
               IgnoredProperty = "Index Test",
               RandomValue     = Guid.NewGuid().ToString()
           };
 }
Пример #2
0
 public JsonResult AjaxMethod(SomeModel model) {
     throw new ApplicationException("Error on AJAX call.");
 }
Пример #3
0
 public ViewResult Index(SomeModel model) {
     throw new ApplicationException("Error on form submit.");
 }
Пример #4
0
 public JsonResult AjaxMethod(SomeModel model)
 {
     throw new ApplicationException("Error on AJAX call.");
 }
Пример #5
0
 public ViewResult Index(SomeModel model)
 {
     throw new ApplicationException("Error on form submit.");
 }
Пример #6
0
 public ViewResult Index(SomeModel model) {
     throw new MyApplicationException("Error on form submit.") {
         IgnoredProperty = "Index Test",
         RandomValue = Guid.NewGuid().ToString()
     };
 }