public Task<IdentityResult> CreateAsync(DasBlogUser user, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); if (user == null) { throw new ArgumentNullException(nameof(user)); } try { var mappedUser = _mapper.Map<User>(user); _dasBlogSettings.AddUser(mappedUser); } catch (Exception e) { return Task.FromResult(IdentityResult.Failed(new IdentityError { Description = e.Message })); } return Task.FromResult(IdentityResult.Success); }