Exemplo n.º 1
0
 public ActionResult Edit(int id, IFormCollection collection)
 {
     try
     {
         ItemAtualizarViewModel item = new ItemAtualizarViewModel();
         TryUpdateModelAsync(item);
         itemDao.Alterar(item);
         return(RedirectToAction(nameof(Index)));
     }
     catch
     {
         return(RedirectToAction(nameof(Index)));
     }
 }