Ejemplo n.º 1
0
        private BaseActionResult AddExamName(string parameters)
        {
            BaseActionResult result     = new BaseActionResult();
            string           examName   = CommonGlobalSettings.Utilities.GetParameter("examName", parameters);
            string           parentGuid = CommonGlobalSettings.Utilities.GetParameter("parentGuid", parameters);
            string           domain     = CommonGlobalSettings.Utilities.GetParameter("domain", parameters);
            string           site       = CommonGlobalSettings.Utilities.GetParameter("site", parameters);

            try
            {
                if (dictionaryService.AddExamName(examName, parentGuid, domain, site))
                {
                    result.Result = true;
                }
                else
                {
                    result.Result = false;
                }
            }
            catch (Exception ex)
            {
                result.Result        = false;
                result.ReturnMessage = ex.Message;
            }

            return(result);
        }