public ActionResult Insert(Cliente newModel) { if (ModelState.IsValid) { newModel.InsertCliente(); return RedirectToAction("Index"); } else { return View(newModel); } }
public ActionResult Insert(Cliente newModel) { if (ModelState.IsValid) { newModel.InsertCliente(); return RedirectToAction("Index"); } else { //newModel.listaCliente = Producto.GetListaTiposProducto(); return View(newModel); } }