// GET: ListaUsuario/Delete/5 public ActionResult Delete(usuario usuario) { try { // TODO: Add delete logic here if (ModelState.IsValid) { var res = usuario.Eliminar(usuario); if (res == true) { return(RedirectToAction("Index")); } return(RedirectToAction("Index")); } return(RedirectToAction("Index")); } catch { return(RedirectToAction("Index")); } }