Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs @ 70:c7264bfc4b71
agregado de properties en clase Evento (UrlInvitacion, UrlWiki, NumeroOrden)
modificaciones en proyecto Agendas.Blog
modificacion de viewmodel EventoModel - agregado de UrlInvitacion (no requerido)
author | jorge.rowies |
---|---|
date | Fri, 20 May 2011 12:21:07 -0300 |
parents | 3059a5f8930f |
children | bc46e7426c80 |
comparison
equal
deleted
inserted
replaced
69:8becac0977d7 | 70:c7264bfc4b71 |
---|---|
33 { | 33 { |
34 if (ModelState.IsValid) | 34 if (ModelState.IsValid) |
35 { | 35 { |
36 var agenda = AgendaFactory.GetAgenda(); | 36 var agenda = AgendaFactory.GetAgenda(); |
37 | 37 |
38 var r = agenda.Publicar(model.Titulo, model.Ponente, model.Fecha); | 38 var r = agenda.Publicar(model.Titulo, model.Ponente, model.Fecha, |
39 model.UrlInvitacion); | |
39 if (r.Succeful) | 40 if (r.Succeful) |
40 return RedirectToAction("Index"); | 41 return RedirectToAction("Index"); |
41 ModelState.AddModelError("error", r.ToString()); | 42 ModelState.AddModelError("error", r.ToString()); |
42 } | 43 } |
43 return View(model); | 44 return View(model); |