gov.va.medora.mdo.dao.vista.VistaUserDao.addOption C# (CSharp) Method

addOption() private method

private addOption ( string file, string context, string duz ) : string
file string
context string
duz string
return string
        internal string addOption(string file, string context, string duz)
        {
            //Did we get a numeric DUZ?
            if (!StringUtils.isNumeric(duz))
            {
                throw new ArgumentException("Non-numeric user ID");
            }

            //Now make sure site has the requested option.  Otherwise a record will be written with a bad pointer to
            //file 19.
            string optionIen = getOptionIen(context);
            if (optionIen == "")
            {
                throw new ArgumentException("No such context");
            }

            DdrFiler query = buildAddOptionQuery(file, optionIen, duz);
            string response = query.execute();
            return toAddOptionResult(response);
        }
VistaUserDao