Пример #1
0
        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));
        }