示例#1
0
        private BaseActionResult DeleteDictionaryItems(string parameters)
        {
            DataSetActionResult result = new DataSetActionResult();
            string tag     = CommonGlobalSettings.Utilities.GetParameter("DicTag", parameters);
            string strSite = CommonGlobalSettings.Utilities.GetParameter("Site", parameters);

            try
            {
                DataSet dataSet = dictionaryService.DeleteDictionaryItems(tag, strSite);
                if (dataSet.Tables.Count > 0)
                {
                    result.Result      = true;
                    result.DataSetData = dataSet;
                }
                else
                {
                    result.Result = false;
                }
            }
            catch (Exception ex)
            {
                result.Result        = false;
                result.ReturnMessage = ex.Message;
            }

            return(result);
        }