using Toolkit.Foundation; namespace Wallet; public class FavouriteItemHandler(IDecoratorService> decoratorService, IMediator mediator) : INotificationHandler> { public async Task Handle(FavouriteEventArgs args) { try { if (decoratorService.Service is Item<(Guid, string)> item) { (Guid id, string name) = item.Value; await mediator.Handle, bool>(new UpdateEventArgs<(Guid, int)>((id, 1))); } } catch { } } }