diff Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs @ 208:607384590bf8

Mejorando el mensaje de error que se muestra cuando hay un error de validaciĆ³n del lado del servidor
author nelopauselli
date Wed, 24 Aug 2011 11:30:06 -0300
parents 2d02adb79322
children 6944c54f834f
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs	Wed Aug 24 10:52:44 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs	Wed Aug 24 11:30:06 2011 -0300
@@ -239,7 +239,7 @@
 						this.AddWarning(log.WarningMessage);
 					return RedirectToAction("Index");
 				}
-				ModelState.AddModelError("error", r.ToString());
+				ModelState.AddModelError(string.Empty, r.Message);
 			}
 			return actionresultOnFail.Invoke(model);
 		}