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