Example #1
0
        public async Task <Domain> CreateAsync(CreateDomainCommand createDomainCommand, CancellationToken cancellationToken = default)
        {
            _logger.CreateNewDomain(createDomainCommand.DomainName);

            var domain = await _domainRepository.CreateAsync(createDomainCommand.DomainName, cancellationToken);

            return(domain);
        }