diff Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs @ 155:23aaf98b8377

Generalizando editores en EditorDefault basando los textos en recursos
author Nelo@Guinea.neluz.int
date Wed, 03 Aug 2011 09:38:23 -0300
parents e6e6bfb1da9e
children 557c386fcecc
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs	Wed Aug 03 01:02:42 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Controllers/EventoController.cs	Wed Aug 03 09:38:23 2011 -0300
@@ -39,8 +39,8 @@
 		[Authorize]
 		public ActionResult Nuevo()
 		{
-		    var eventoModel = new EventoNewModel {Fecha = DateTime.Now};
-		    return View(eventoModel);
+		    var model = new EventoNewModel {Fecha = DateTime.Now};
+		    return View("Defaulteditor", model);
 		}
 
 		[HttpPost]
@@ -60,7 +60,7 @@
 				}
 				ModelState.AddModelError("error", r.ToString());
 			}
-			return View(model);
+            return View("Defaulteditor", model);
 		}
 
 		[Authorize]
@@ -97,7 +97,7 @@
 				Fecha = evento.Fecha,
 				UrlInvitacion = evento.UrlInvitacion
 			};
-			return View(model);
+            return View("Defaulteditor", model);
 		}
 		
 		[HttpPost]
@@ -116,7 +116,7 @@
 				}
 				ModelState.AddModelError("error", r.ToString());
 			}
-			return View(model);
+            return View("Defaulteditor", model);
 		}
 
 		[Authorize]
@@ -133,7 +133,7 @@
 				Fecha = evento.Fecha,
 				UrlInvitacion = evento.UrlInvitacion
 			};
-			return View(model);
+            return View("Defaulteditor", model);
 		}
 
 		[HttpPost]
@@ -152,13 +152,14 @@
 				}
 				ModelState.AddModelError("error", r.ToString());
 			}
-			return View(model);
+            return View("Defaulteditor", model);
 		}
 
 		[Authorize]
 		public ActionResult Proponer()
 		{
-			return View(new PropuestaNewModel());
+			var model = new PropuestaNewModel();
+            return View("Defaulteditor", model);
 		}
 
 		[HttpPost]
@@ -174,7 +175,7 @@
 					return RedirectToAction("Index");
 				ModelState.AddModelError("error", r.ToString());
 			}
-			return View(model);
+            return View("Defaulteditor", model);
 		}
         
         [Authorize]