public ActionResult Edit(int id, ClienteViewModel viewModel) { try { if (!ModelState.IsValid) { return(View(viewModel)); } _clienteApp.Update(viewModel); return(RedirectToAction("Index")); } catch { return(View(viewModel)); } }