Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs @ 177:784d81e32366
Quitando la opción de proponer para esta versión
author | nelopauselli |
---|---|
date | Mon, 08 Aug 2011 10:22:22 -0300 |
parents | 5c94b052d838 |
children | 1deccd6c3cb2 |
comparison
equal
deleted
inserted
replaced
176:c58d26b15759 | 177:784d81e32366 |
---|---|
186 } | 186 } |
187 | 187 |
188 [Authorize] | 188 [Authorize] |
189 public ActionResult Proponer() | 189 public ActionResult Proponer() |
190 { | 190 { |
191 throw new NotImplementedException(); | |
191 var model = new PropuestaNewModel(); | 192 var model = new PropuestaNewModel(); |
192 return View("Defaulteditor", model); | 193 return View("Defaulteditor", model); |
193 } | 194 } |
194 | 195 |
195 [HttpPost] | 196 [HttpPost] |
196 [Authorize] | 197 [Authorize] |
197 public ActionResult Proponer(PropuestaNewModel model) | 198 public ActionResult Proponer(PropuestaNewModel model) |
198 { | 199 { |
200 throw new NotImplementedException(); | |
199 if (ModelState.IsValid) | 201 if (ModelState.IsValid) |
200 { | 202 { |
201 var agenda = AgendaFactory.GetAgenda(); | 203 var agenda = AgendaFactory.GetAgenda(); |
202 | 204 |
203 var r = agenda.Proponer(model.Titulo, model.Ponente, model.UrlInvitacion, (TipoEvento)model.TipoEvento); | 205 var r = agenda.Proponer(model.Titulo, model.Ponente, model.UrlInvitacion, (TipoEvento)model.TipoEvento); |