diff 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
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs	Mon Dec 26 14:34:46 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs	Wed Dec 28 09:35:27 2011 -0300
@@ -1,4 +1,5 @@
 using System;
+using System.Collections.Generic;
 using System.Linq;
 using System.Web.Mvc;
 using AltNetHispano.Agendas.Domain;
@@ -113,6 +114,9 @@
 		[CustomAuthorize(Roles = Roles.Administrador)]
 		public ActionResult Publicar(EventoPublicarModel model)
 		{
+			var a = AgendaFactory.GetAgenda();
+			a.IndicarPatrocinadores(new Guid(model.Id), model.Patrocinadores);
+
 			return
 					GenericAction(
 						(agenda, m) => agenda.Publicar(new Guid(m.Id), m.NroOrden, m.UrlWiki, m.DuracionReal),