public async Task <Localization> Handle(CodificationRequestCommand request, CancellationToken cancellationToken) { var localizationRequest = await _localizationRequestRepository.GetLocalizationRequestByIdAsync(request.Localization.Id, cancellationToken); _codificationRequestSender.SendLocalizationRequest(localizationRequest); return(localizationRequest); }
public async Task <Localization> Handle(GetLocalizationRequestByIdQuery request, CancellationToken cancellationToken) { return(await _localizationRequestRepository.GetLocalizationRequestByIdAsync(request.Id, cancellationToken)); }