public ActionResult DeleteById(int id = -1) { if (id > 0) { String errorMsg = string.Empty; ProveedorDAO CLDAO = new ProveedorDAO(); bool result = CLDAO.DeleteById(id); if (!result) { errorMsg = "Error al borrar proveedor"; } } return(View(ABSOLUTE_PATH)); }