예제 #1
0
        public ActionResult AtualizarTelefone(TelefoneViewModel telefoneViewModel)
        {
            if (ModelState.IsValid)
            {
                _clienteApplication.AtualizarTelefone(telefoneViewModel);

                string url = Url.Action("ListarTelefones", "Clientes", new { id = telefoneViewModel.ClienteId });
                return(Json(new { success = true, url = url }));
            }

            return(PartialView("_AtualizarTelefone", telefoneViewModel));
        }