Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public void Delete(IEntity model)
 {
     _dbStore.Delete(model);
 }