Example #1
0
        string getNewATCid()
        {
            string id = "00";

            while (DatabaseService.ATCExists(id))
            {
                id = IdUtility.IncrementStringID(id);
            }
            return(id);
        }
Example #2
0
        string getConnectionID()
        {
            string id = "000";

            while (connections.Exists(c => c.id == id))
            {
                id = IdUtility.IncrementStringID(id);
            }
            return(id);
        }