This commit is contained in:
TheXamlGuy
2024-07-17 21:43:58 +01:00
parent eae11dc260
commit 9daebc7ba2
124 changed files with 233 additions and 247 deletions
+5 -5
View File
@@ -1,13 +1,13 @@
using Wallet.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Toolkit.Foundation;
using Wallet.Data;
namespace Wallet;
public class UpdateItemStateHandler(IDbContextFactory<WalletContext> dbContextFactory) :
public class UpdateItemStateHandler(IDbContextFactory<WalletContext> dbContextFactory) :
IHandler<UpdateEventArgs<(Guid, int)>, bool>
{
public async Task<bool> Handle(UpdateEventArgs<(Guid, int)> args,
public async Task<bool> Handle(UpdateEventArgs<(Guid, int)> args,
CancellationToken cancellationToken)
{
if (args.Sender is (Guid id, int state))
@@ -22,4 +22,4 @@ public class UpdateItemStateHandler(IDbContextFactory<WalletContext> dbContextFa
return false;
}
}
}