public ActionResult Delete(int id, FormCollection collection) { try { facturaRepository.DeleteFactura(id); return(RedirectToAction("Index")); } catch { return(View("DeleteFactura")); } }