コード例 #1
0
 public async Task <CountryOutputModel> Handle(
     GetCountryQuery request,
     CancellationToken cancellationToken)
 => await countryQueryRepository.Get(request.Id, cancellationToken);
コード例 #2
0
 public async Task <IEnumerable <CountryOutputModel> > Handle(
     GetCountriesQuery request,
     CancellationToken cancellationToken)
 => await countryQueryRepository.Get(cancellationToken);