예제 #1
0
        public ActionResult CreateExpenseTransactionReceiver([Bind(Include = "Id,EstimatedAmount,EndDate")] Income expense, int id)
        {
            // I am borrowing the EndDate property to piggyback the selected date to the Tx creation process.
            TransactionProcessor processor = new TransactionProcessor();

            processor.CreateExpenseTransaction(expense.Id, expense.EstimatedAmount, expense.EndDate.Value);
            return(RedirectToAction("Details", "Expenses", new { id = expense.Id }));
        }