public ActionResult Edit(Client c) { if (ModelState.IsValid) { if (CVM.ExistDataBase(c)) { ModelState.AddModelError("name", "Este cliente ya existe"); return(View(c)); } else { CVM.Edit(c); return(RedirectToAction("Index")); } } return(View(c)); }