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