public ActionResult DeleteRubro(int id) { var result = rubroRepository.DeleteRubro(id); if (result == null) { return(NotFound()); } return(Ok("Rubro Eliminado Correctamente")); }