Mercurial > altnet-hispano
comparison 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 |
comparison
equal
deleted
inserted
replaced
207:beeb7fd09ae7 | 208:607384590bf8 |
---|---|
237 this.AddNotification(r.Message); | 237 this.AddNotification(r.Message); |
238 foreach (var log in r.Warnings) | 238 foreach (var log in r.Warnings) |
239 this.AddWarning(log.WarningMessage); | 239 this.AddWarning(log.WarningMessage); |
240 return RedirectToAction("Index"); | 240 return RedirectToAction("Index"); |
241 } | 241 } |
242 ModelState.AddModelError("error", r.ToString()); | 242 ModelState.AddModelError(string.Empty, r.Message); |
243 } | 243 } |
244 return actionresultOnFail.Invoke(model); | 244 return actionresultOnFail.Invoke(model); |
245 } | 245 } |
246 | 246 |
247 private DateTime? GenerarFechaInicio(DateTime? fecha, TimeSpan? hora) | 247 private DateTime? GenerarFechaInicio(DateTime? fecha, TimeSpan? hora) |