public ActionResult Create(int vendorId, string transactionDate, string transactionItem, string transactionQuantity, string transactionPrice, string transactionNote, string transactionBalance) { Dictionary <string, object> model = new Dictionary <string, object>(); Vendor foundVendor = Vendor.Find(vendorId); Transaction newTransaction = new Transaction(transactionDate, transactionItem, transactionQuantity, transactionPrice, transactionNote, transactionBalance); foundVendor.AddTransaction(newTransaction); List <Transaction> vendorTransactions = foundVendor.Transactions; model.Add("transactions", vendorTransactions); model.Add("vendor", foundVendor); return(View("Show", model)); }