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

            processor.CreateIncomeTransaction(income.Id, income.EstimatedAmount, income.EndDate.Value);
            return(RedirectToAction("Details", "Incomes", new { id = income.Id }));
        }