Ejemplo n.º 1
0
 public ActionResult Delete(int id, IFormCollection collection)
 {
     try
     {
         ItemDeletarViewModel item = new ItemDeletarViewModel();
         TryUpdateModelAsync(item);
         itemDao.Deletar(item);
         return(RedirectToAction(nameof(Index)));
     }
     catch
     {
         return(View());
     }
 }