Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs @ 167:ea85bd893247
Ajustes menores de UI
author | nelopauselli |
---|---|
date | Sat, 06 Aug 2011 02:51:07 -0300 |
parents | fae2feae499e |
children | 5c94b052d838 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs Fri Aug 05 22:56:43 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs Sat Aug 06 02:51:07 2011 -0300 @@ -55,7 +55,7 @@ model.UrlInvitacion, (TipoEvento)model.TipoEvento); if (r.Succeful) { - this.AddNotification("Datos guardados"); + this.AddNotification("Evento creado"); return RedirectToAction("Index"); } ModelState.AddModelError("error", r.ToString()); @@ -67,13 +67,17 @@ public ActionResult Confirmar(string id) { var agenda = AgendaFactory.GetAgenda(); - agenda.Confirmar(new Guid(id)); + + var r = agenda.Confirmar(new Guid(id)); + if (r.Succeful) + this.AddNotification("Evento confirmado"); + else + this.AddError("Evento confirmado"); - this.AddNotification("Evento confirmado"); return RedirectToAction("Index"); } - [Authorize] + [Authorize] public ActionResult Publicar(string id) { var agenda = AgendaFactory.GetAgenda(); @@ -137,7 +141,7 @@ var r = agenda.ModificarEvento(new Guid(model.Id), model.Titulo, model.Ponente, model.Fecha.Value, model.UrlInvitacion); if (r.Succeful) { - this.AddNotification("datos guardados"); + this.AddNotification("evento modificado"); return RedirectToAction("Index"); } ModelState.AddModelError("error", r.ToString()); @@ -198,7 +202,10 @@ var r = agenda.Proponer(model.Titulo, model.Ponente, model.UrlInvitacion, (TipoEvento)model.TipoEvento); if (r.Succeful) + { + this.AddNotification("Evento propuesto"); return RedirectToAction("Index"); + } ModelState.AddModelError("error", r.ToString()); } return View("Defaulteditor", model);