diff Agendas/trunk/src/Agendas.Web/Controllers/PersonaController.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 a2b14da4902f
children f17252543cbf
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Controllers/PersonaController.cs	Wed Aug 03 01:02:42 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Controllers/PersonaController.cs	Wed Aug 03 09:38:23 2011 -0300
@@ -19,7 +19,8 @@
 
         public ActionResult Nueva()
         {
-            return View();
+            var model = new PersonaNewModel();
+            return View("Defaulteditor", model);
         }
 
         [HttpPost]
@@ -38,7 +39,7 @@
                     this.AddError(r.Message);
             }
 
-            return View(model);
+            return View("Defaulteditor", model);
         }
 
         public ActionResult Modificar(string id)
@@ -54,8 +55,8 @@
 
             var model = new PersonaEditModel
                             {Id = persona.Id.ToString(), Nombre = persona.Nombre, Twitter = persona.Twitter, EMail = persona.Mail};
-            
-            return View(model);
+
+            return View("Defaulteditor", model);
         }
 
         [HttpPost]
@@ -74,7 +75,7 @@
                     this.AddError(r.Message);
             }
 
-            return View(model);
+            return View("Defaulteditor", model);
         }
     }
 }
\ No newline at end of file