public ActionResult Edit(AlbumViewModel albumViewModel) { if (ModelState.IsValid) { //var errors = ModelState.Values.SelectMany(v => v.Errors); _albumAppService.Atualizar(albumViewModel); return(RedirectToAction("Index")); } IEnumerable <AlbumViewModel> AlbumViewModels = _albumAppService.ObterTodos(); return(View(AlbumViewModels)); }