Exemple #1
0
        public void EditRole(EditRoleModel roleModel)
        {
            var role = _roleDal.GetRole(roleModel.Id);

            if (role == null)
            {
                throw new UserFriendlyException("查询不到Role");
            }

            role.RoleName    = roleModel.RoleName;
            role.Description = roleModel.RoleDesc;
            role.UpdatedTime = DateTime.Now;

            _roleDal.EditRole(role);
        }