//
        // GET: /Transaction/Transaction/Delete/5

        public ActionResult Delete(Guid id)
        {
            Cats.Models.Transaction transaction = _accountTransactionService.FindById(id);
            if (transaction == null)
            {
                return(HttpNotFound());
            }
            return(View(transaction));
        }
 public ActionResult Edit(Cats.Models.Transaction transaction)
 {
     if (ModelState.IsValid)
     {
         _accountTransactionService.UpdateTransaction(transaction);
         return(RedirectToAction("Index"));
     }
     return(View(transaction));
 }
        public ActionResult Create(Cats.Models.Transaction transaction)
        {
            if (ModelState.IsValid)
            {
                transaction.TransactionID      = Guid.NewGuid();
                transaction.TransactionGroupID = Guid.NewGuid();

                _accountTransactionService.AddTransaction(transaction);

                return(RedirectToAction("Index"));
            }

            return(View(transaction));
        }