public override async Task <Countries> Handle(AddCountryCommand command, CancellationToken cancellationToken) { var validado = await IsValidAsync(command, cancellationToken).ConfigureAwait(false); if (!validado) { return(null); } var region = await _regionQuery.Get(command.RegionId.Value, cancellationToken); var country = new Countries(command.CountryId, command.CountryName, region); _countryRepository.Add(country); await _countryRepository.SaveChanges(cancellationToken); return(country); }