示例#1
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="role">角色实体</param>
        public virtual void DeleteRole(Role role)
        {
            if (role == null)
                throw new ArgumentNullException("role");

            _roleRepository.Delete(role);
        }
示例#2
0
        /// <summary>
        /// 插入
        /// </summary>
        /// <param name="role">角色实体</param>
        public virtual void InsertRole(Role role)
        {
            if (role == null)
                throw new ArgumentNullException("role");

            _roleRepository.Insert(role);
        }