示例#1
0
        public System.Threading.Tasks.Task DeleteAsync(TRole role)
        {
            if (role == null)
            {
                throw new ArgumentNullException("user");
            }
            BusinessLogicLayer.Entity.RoleSecurity.Role roleEntity = new BusinessLogicLayer.Entity.RoleSecurity.Role(role.RoleId);
            roleEntity.Delete();

            return(Task.FromResult <Object>(null));
        }