Esempio n. 1
0
        private BaseModel ClientValidateAuthorizedTypeId(int authorizedTypeId)
        {
            #region 非数据库端验证authorizedTypeId
            if (!ValidateHelper.AuthorizedTypeId(authorizedTypeId))
            {
                return(new BaseModel()
                {
                    Code = (int)CodeEnum.AuthorizedTypeId错误, Msg = CodeMsgDAL.GetByCode((int)CodeEnum.AuthorizedTypeId错误)
                });
            }
            #endregion

            return(new BaseModel()
            {
                Code = (int)CodeEnum.成功, Msg = string.Format(CodeMsgDAL.GetByCode((int)CodeEnum.成功), "成功")
            });
        }