Esempio n. 1
0
        /// <summary>
        /// 检测角色编号是否已存在
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public string IsExsitRoleCode(HttpContext context)
        {
            string fCode = context.Request["fCode"];
            string fId   = context.Request["fId"];

            bool result = roleBll.IsExsitRoleCode(fCode, fId);

            if (result)
            {
                return(ErrorResult(JsonRpcErrorEnum.BusinessError, "该角色编码已存在!"));
            }
            else
            {
                return(SuccessResult("true"));
            }
        }