comparison Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs @ 212:6944c54f834f

Ticket 175: Se cambia el mensaje por una pantalla de confirmaciĆ³n, que sugiere los textos.
author juanjose.montesdeocaarbos
date Fri, 26 Aug 2011 21:54:36 -0300
parents 607384590bf8
children c4c60e034103
comparison
equal deleted inserted replaced
211:75eefd82760f 212:6944c54f834f
66 } 66 }
67 67
68 [CustomAuthorize(Roles = Roles.Administrador)] 68 [CustomAuthorize(Roles = Roles.Administrador)]
69 public ActionResult Confirmar(string id) 69 public ActionResult Confirmar(string id)
70 { 70 {
71 var agenda = AgendaFactory.GetAgenda();
72 var evento = agenda.GetEvento(new Guid(id));
73
74 var model = new EventoConfirmModel
75 {
76 Id = id,
77 Titulo = evento.Titulo/*,
78 Mensaje = "Recuerde agendar los eventos en http://twuffer.com/ u otro servicio similar."*/
79 };
80 return View("Defaulteditor", model);
81 }
82
83 [HttpPost]
84 [CustomAuthorize(Roles = Roles.Administrador)]
85 public ActionResult Confirmar(EventoConfirmModel model)
86 {
71 return 87 return
72 GenericAction( 88 GenericAction(
73 (agenda, m) => agenda.Confirmar(m), 89 (agenda, m) => agenda.Confirmar(new Guid(m.Id)),
74 m => View("Index", m), 90 m => View("Defaulteditor", m),
75 new Guid(id)); 91 model);
76 } 92 }
77 93
78 [CustomAuthorize(Roles = Roles.Administrador)] 94 [CustomAuthorize(Roles = Roles.Administrador)]
79 public ActionResult Publicar(string id) 95 public ActionResult Publicar(string id)
80 { 96 {