private static string deleteArticulo(DBStorage db, string message) { short id; try { id = Int16.Parse(message); } catch (Exception) { return("ERR"); } if (id <= 0) { return("ERR"); } return(db.deleteArticulo(id) ? "OK" : "ERR"); }