gov.va.medora.mdo.dao.vista.VistaUserDao.toRemoveOptionResult C# (CSharp) Метод

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

private toRemoveOptionResult ( string response ) : string
response string
Результат string
        internal string toRemoveOptionResult(string response)
        {
            if (response == "")
            {
                return "";
            }
            string[] lines = StringUtils.split(response, StringUtils.CRLF);
            lines = StringUtils.trimArray(lines);
            if (lines[0] == "[Data]" && lines.Length == 1)
            {
                return "OK";
            }
            if (lines[1] != VistaConstants.BEGIN_ERRS && lines[lines.Length - 1] != VistaConstants.END_ERRS)
            {
                return "Unexpected return message: " + response;
            }
            return "removeOption error: " + lines[lines.Length - 2];
        }
VistaUserDao