public async Task <bool> Handle(CreateNewAuthorCommand request, CancellationToken cancellationToken) { await _dbContext.GetDb(); var author = await _dbContext.GetAuthor(request.Author.Id); if (author is not null) { return(false); } await _dbContext.AddAuthor(request.Author); return(true); }