Working at last!
This commit is contained in:
@@ -10,10 +10,10 @@ public static class ApplyFeeHandler
|
||||
{
|
||||
public static Task<Account?> LoadAsync(
|
||||
ApplyFeeCommand cmd,
|
||||
AccountDbContext db) => db.Set<Account>().AsNoTracking().SingleOrDefaultAsync(x => x.Id == cmd.AccountId);
|
||||
AccountDbContext db) => db.Accounts.AsNoTracking().SingleOrDefaultAsync(x => x.Id == cmd.AccountId);
|
||||
|
||||
[Transactional]
|
||||
public static (Update<Account> UpdatedAccount, FeeAppliedEvent Event) Handle(
|
||||
public static (IStorageAction<Account> UpdatedAccount, FeeAppliedEvent Event) Handle(
|
||||
ApplyFeeCommand cmd,
|
||||
Account account)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user