1: 2: 3:
object r = DBDataHandler.ExecuteScalar(connection, "SPID", UID); int BId = Convert.IsDBNull(r) ? -1 : (int)r return BId;