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