gov.va.medora.mdo.api.UserApi.providerLookup C# (CSharp) Method

providerLookup() public method

public providerLookup ( ConnectionSet cxns, string>.KeyValuePair param ) : IndexedHashtable
cxns gov.va.medora.mdo.dao.ConnectionSet
param string>.KeyValuePair
return IndexedHashtable
        public IndexedHashtable providerLookup(ConnectionSet cxns, KeyValuePair<string, string> param)
        {
            return cxns.query(DAO_NAME, "providerLookup", new object[] { param });
        }

Same methods

UserApi::providerLookup ( gov.va.medora.mdo.dao.AbstractConnection cxn, string>.KeyValuePair param ) : User[]

Usage Example

Example #1
0
        //
        public UserArray cprsUserLookup(string sitecode, string target)
        {
            UserArray result = new UserArray();
            string msg = MdwsUtils.isAuthorizedConnection(mySession, sitecode);
            if (msg != "OK")
            {
                result.fault = new FaultTO(msg);
            }
            if (result.fault != null)
            {
                return result;
            }

            if (sitecode == null)
            {
                sitecode = mySession.ConnectionSet.BaseSiteId;
            }

            try
            {
                AbstractConnection cxn = mySession.ConnectionSet.getConnection(sitecode);
                UserApi api = new UserApi();
                User[] matches = api.providerLookup(cxn, new KeyValuePair<string,string>("NAME",target));
                result = new UserArray(matches);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }