Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs @ 284:79942e030118
#123: Patrocinadores de las vans: Se verifica que para publicar una Van, debe tener al menos un Patrocinador.
author | juanjose.montesdeocaarbos |
---|---|
date | Wed, 28 Dec 2011 09:35:27 -0300 |
parents | c61954d24c8c |
children |
comparison
equal
deleted
inserted
replaced
283:2e17dfd1ba35 | 284:79942e030118 |
---|---|
1 using System; | 1 using System; |
2 using System.Collections.Generic; | |
2 using System.Linq; | 3 using System.Linq; |
3 using System.Web.Mvc; | 4 using System.Web.Mvc; |
4 using AltNetHispano.Agendas.Domain; | 5 using AltNetHispano.Agendas.Domain; |
5 using AltNetHispano.Agendas.Factories; | 6 using AltNetHispano.Agendas.Factories; |
6 using AltNetHispano.Agendas.Twitter; | 7 using AltNetHispano.Agendas.Twitter; |
111 | 112 |
112 [HttpPost] | 113 [HttpPost] |
113 [CustomAuthorize(Roles = Roles.Administrador)] | 114 [CustomAuthorize(Roles = Roles.Administrador)] |
114 public ActionResult Publicar(EventoPublicarModel model) | 115 public ActionResult Publicar(EventoPublicarModel model) |
115 { | 116 { |
117 var a = AgendaFactory.GetAgenda(); | |
118 a.IndicarPatrocinadores(new Guid(model.Id), model.Patrocinadores); | |
119 | |
116 return | 120 return |
117 GenericAction( | 121 GenericAction( |
118 (agenda, m) => agenda.Publicar(new Guid(m.Id), m.NroOrden, m.UrlWiki, m.DuracionReal), | 122 (agenda, m) => agenda.Publicar(new Guid(m.Id), m.NroOrden, m.UrlWiki, m.DuracionReal), |
119 m => View("Defaulteditor", m), | 123 m => View("Defaulteditor", m), |
120 model); | 124 model); |