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