Exemplo n.º 1
0
 public ActionResult _CrearProyectoVacio(ProyectoVacioViewModel newModel)
 {
     if (ModelState.IsValid)
     {
         newModel.InsertProyecto();
         //return RedirectToAction("Index");
         return Json(new { success = true });
     }
     else
     {
         return PartialView(newModel);
     }
 }
Exemplo n.º 2
0
 // GET: Topologia/CrearProyectoVacio
 public ActionResult _CrearProyectoVacio()
 {
     string cUsuarioActual = Session["Usuario"].ToString();
     ProyectoVacioViewModel newModel = new ProyectoVacioViewModel();
     newModel.cUserName = cUsuarioActual;
     return PartialView(newModel);
 }