public ActionResult Debit(AccountDebitForm form)
        {
            if (ModelState.IsValid)
            {
                accountService.Debit(form.AccountId, form.DebitAmount);
                return RedirectToAction("Index");
            }

            return View("Debit", form);
        }
        public ActionResult Debit(AccountDebitForm form)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    Account account = accountRepository.Get(form.AccountId);
                    account.Debit(form.DebitAmount);
                    unitOfWork.Commit();
                    return RedirectToAction("Details", new { id = account.Id });
                }
                catch
                {
                    unitOfWork.Rollback();
                    throw;
                }
            }

            return View("Debit", form);
        }
        public ActionResult Debit(AccountDebitForm form)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    accountModule.Debit(form.AccountId, form.DebitAmount);
                    unitOfWork.Commit();
                    return RedirectToAction("Index");
                }
                catch
                {
                    unitOfWork.Rollback();
                    throw;
                }
            }

            return View("Debit", form);
        }