public Task DeleteAsync(TRole role) { if (role == null) { throw new ArgumentNullException("user"); } roleTable.Delete(role.Id); return(Task.FromResult <Object>(null)); }
public Task DeleteAsync(IdentityRole role) { if (role == null) { throw new ArgumentNullException(nameof(role)); } _roleTable.Delete(role.Id); return(Task.FromResult <Object>(null)); }