Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Part 4 - TransactionController
public class Transaction
public PaymentType PaymentType { get; set; }
public decimal Amount { get; set; }
public class TransactionController : ControllerBase
private static readonly List<Transaction> s_Transactions = new List<Transaction>();
public IActionResult CreateTransaction(Transaction transaction)
return Ok();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment