public async Task <User> GetAsync(string email, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); User user = await repository.GetAsync(email, cancellationToken); if (user == null) { return(null); } user.IsPersisted = true; return(user); }