public async Task UpdateStatusAsync(UserTransactionType userTransactionType, string detailId, Guid accountId, byte transactionStatus) { const string sql = @"UPDATE [dbo].[UserTransactions] SET [Status]=@Status WHERE [Type]=@Type AND [DetailId]=@DetailId AND [AccountId]=@AccountId"; using (var conn = await WriteConnectionAsync()) { await conn.ExecuteAsync(sql, new { Status = transactionStatus, Type = (byte)userTransactionType, DetailId = detailId, AccountId = accountId }); } }
public override void UpdateStatus(UserTransactionType userTransactionType, string detailId, Guid accountId, byte transactionStatus) { new UserTransactionDAC().UpdateStatus(userTransactionType, detailId, accountId, transactionStatus); }
public override void UpdateStatus(UserTransactionType userTransactionType, string detailId, Guid accountId, byte transactionStatus) { return; }
public abstract void UpdateStatus(UserTransactionType userTransactionType, string detailId, Guid accountId, byte transactionStatus);