public Task <IdentityResult> DeleteAsync(TRole role, CancellationToken cancellationToken = new CancellationToken()) { cancellationToken.ThrowIfCancellationRequested(); if (role == null) { throw new ArgumentNullException(nameof(role)); } _dbStore.Delete(role); return(Task.FromResult(IdentityResult.Success)); }
public void Delete(IEntity model) { _dbStore.Delete(model); }