예제 #1
0
        private BaseActionResult AddTeachingCategory(string parameters)
        {
            BaseActionResult result       = new BaseActionResult();
            string           guid         = CommonGlobalSettings.Utilities.GetParameter("guid", parameters);
            string           categoryName = CommonGlobalSettings.Utilities.GetParameter("categoryName", parameters);
            string           parentID     = CommonGlobalSettings.Utilities.GetParameter("parentID", parameters);
            int level   = Convert.ToInt32(CommonGlobalSettings.Utilities.GetParameter("level", parameters));
            int orderNo = Convert.ToInt32(CommonGlobalSettings.Utilities.GetParameter("orderNo", parameters));

            #region Added by Blue for RC569, 4/23/2014
            string optionSettingName = CommonGlobalSettings.Utilities.GetParameter("optionSettingName", parameters);
            #endregion
            try
            {
                if (dictionaryService.AddTeachingCategory(guid, categoryName, optionSettingName, parentID, level, orderNo))
                {
                    result.Result = true;
                }
                else
                {
                    result.Result = false;
                }
            }
            catch (Exception ex)
            {
                result.Result        = false;
                result.ReturnMessage = ex.Message;
            }

            return(result);
        }