public TransactionResponse(Transaction transaction) { this.Id = transaction.Id; this.Amount = transaction.Amount; this.Description = transaction.Description; this.Date = transaction.Date; this.TransactionType = transaction.TransactionType; }
public void Update(Transaction entity) { db.Update(entity); }
public void Create(Transaction entity) { db.Insert<Transaction>(entity); }