} // authenticateAsset /// <summary> /// Find Client /// </summary> /// <param name="client">client name</param> /// <returns>AD_Client_ID</returns> private int FindClient(String client) { if (_clients == null) { _clients = MClient.GetAll(GetCtx()); } for (int i = 0; i < _clients.Length; i++) { if (client.ToLower().Equals(_clients[i].GetValue().ToLower()))// client.equalsIgnoreCase (_clients[i].GetValue()))) { return(_clients[i].GetAD_Client_ID()); } } return(0); } // findClient