gov.va.medora.mdws.UserLib.getUser C# (CSharp) Метод

getUser() приватный Метод

private getUser ( gov.va.medora.mdo.dao.AbstractConnection cxn, string DUZ ) : UserTO
cxn gov.va.medora.mdo.dao.AbstractConnection
DUZ string
Результат gov.va.medora.mdws.dto.UserTO
        internal UserTO getUser(AbstractConnection cxn, string DUZ)
        {
            UserTO result = new UserTO();
            if (DUZ == "")
            {
                result.fault = new FaultTO("Missing DUZ");
            }
            if (result.fault != null)
            {
                return result;
            }
            try
            {
                UserApi api = new UserApi();
                User u = api.getUser(cxn, DUZ);
                result = new UserTO(u);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }

Same methods

UserLib::getUser ( string DUZ ) : UserTO
UserLib::getUser ( string sitecode, string DUZ ) : UserTO