private async Task HandleMdsCodeChanged(UnderlyingChangedEvent e) { if (e.OldValue.MdsCode != e.NewValue.MdsCode) { try { await _productsService.ChangeUnderlyingMdsCodeAsync(e.OldValue.MdsCode, e.NewValue.MdsCode, e.Username, e.CorrelationId); } catch (Exception exception) { throw new Exception( $"Cannot update products with underlying mds code {e.OldValue.MdsCode}: {exception.Message}", exception); } } }