Example #1
0
        public Task DeleteAsync(TRole role)
        {
            if (role == null)
            {
                throw new ArgumentNullException("user");
            }

            roleTable.Delete(role.Id);

            return(Task.FromResult <Object>(null));
        }
Example #2
0
        public Task DeleteAsync(IdentityRole role)
        {
            if (role == null)
            {
                throw new ArgumentNullException(nameof(role));
            }

            _roleTable.Delete(role.Id);

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