Exemplo n.º 1
0
        private BaseActionResult AddValueItem(string parameters)
        {
            BaseActionResult result          = new BaseActionResult();
            string           tag             = CommonGlobalSettings.Utilities.GetParameter("tag", parameters);
            string           codeValue       = CommonGlobalSettings.Utilities.unescape(CommonGlobalSettings.Utilities.GetParameter("codeValue", parameters));
            string           codeDescription = CommonGlobalSettings.Utilities.unescape(CommonGlobalSettings.Utilities.GetParameter("codeDescription", parameters));
            string           shortcutCode    = CommonGlobalSettings.Utilities.unescape(CommonGlobalSettings.Utilities.GetParameter("shortcutCode", parameters));
            string           strDomain       = CommonGlobalSettings.Utilities.GetParameter("Domain", parameters);
            string           strSite         = CommonGlobalSettings.Utilities.GetParameter("Site", parameters);

            //string orderid = CommonGlobalSettings.Utilities.GetParameter("orderId", parameters);
            try
            {
                if (dictionaryService.AddDictionaryValue(tag, codeValue, codeDescription, shortcutCode, strDomain, strSite))
                {
                    result.Result = true;
                }
                else
                {
                    result.Result = false;
                }
            }
            catch (Exception ex)
            {
                result.Result        = false;
                result.ReturnMessage = ex.Message;
            }

            return(result);
        }