Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs @ 166:fae2feae499e
Usando DefaultEditor para Publicar
EditorTemplate para TimeSpan
author | nelopauselli |
---|---|
date | Fri, 05 Aug 2011 22:56:43 -0300 |
parents | 557c386fcecc |
children | ea85bd893247 |
comparison
equal
deleted
inserted
replaced
165:56f62516c172 | 166:fae2feae499e |
---|---|
85 Titulo = evento.Titulo, | 85 Titulo = evento.Titulo, |
86 NroOrden = 0, //TODO: Obtener el Ășltimo y sumarle uno. | 86 NroOrden = 0, //TODO: Obtener el Ășltimo y sumarle uno. |
87 UrlWiki = evento.UrlWiki, | 87 UrlWiki = evento.UrlWiki, |
88 DuracionReal = new TimeSpan(0, 0, 0) | 88 DuracionReal = new TimeSpan(0, 0, 0) |
89 }; | 89 }; |
90 return View(model); | 90 return View("Defaulteditor", model); |
91 } | 91 } |
92 | 92 |
93 [HttpPost] | 93 [HttpPost] |
94 [Authorize] | 94 [Authorize] |
95 public ActionResult Publicar(EventoPublicarModel model) | 95 public ActionResult Publicar(EventoPublicarModel model) |
104 this.AddNotification(string.Format("Evento publicado {0}", model.Titulo)); | 104 this.AddNotification(string.Format("Evento publicado {0}", model.Titulo)); |
105 return RedirectToAction("Index"); | 105 return RedirectToAction("Index"); |
106 } | 106 } |
107 ModelState.AddModelError("error", r.ToString()); | 107 ModelState.AddModelError("error", r.ToString()); |
108 } | 108 } |
109 return View(model); | 109 return View("Defaulteditor", model); |
110 } | 110 } |
111 | 111 |
112 [Authorize] | 112 [Authorize] |
113 public ActionResult Modificar(string id) | 113 public ActionResult Modificar(string id) |
114 { | 114 { |