/// <summary> /// /// </summary> /// <param name="request"></param> /// <param name="cancellationToken"></param> /// <returns></returns> public async Task <bool> Handle(EditPingCommand request, CancellationToken cancellationToken) { Console.WriteLine($"Current Culture: {CultureInfo.CurrentCulture}"); Console.WriteLine($"Current UI Culture: {CultureInfo.CurrentUICulture}"); Ping ping = await _repository.GetByIdAsync(request.Id, cancellationToken).ConfigureAwait(false); if (ping == null) { throw new NotFoundException(string.Format(_localizer[MessagesResource.PingNotFound], request.Id)); } ping.Name = request.Name; await _repository.EditAsync(ping, cancellationToken).ConfigureAwait(false); return(true); }