public ActionResult Edit(AccountViewModel model)
        {
            using (var dataContext = new CQRSDataContext())
            {
                var account = dataContext.BankAccountEntities.Single(x => x.BankAccountId == model.BankAccountId);
                account.AccountNumber = model.AccountNumber;
                account.EmailAddress = model.EmailAddress;
                dataContext.SubmitChanges();
            }

            return RedirectToAction("Index");
        }
        public ActionResult Add(AccountViewModel model)
        {
            var account = new BankAccountEntity
                              {
                                  BankAccountId = Guid.NewGuid(),
                                  AccountNumber = model.AccountNumber,
                                  EmailAddress =  model.EmailAddress
                              };

            using (var dataContext = new CQRSDataContext())
            {
                dataContext.BankAccountEntities.InsertOnSubmit(account);
                dataContext.SubmitChanges();
            }

            return RedirectToAction("Index");
        }
        public ActionResult Edit(TransactionViewModel model)
        {
            using (var dataContext = new CQRSDataContext())
            {
                var transaction = dataContext.TransactionEntities.Single(x => x.TransactionId == model.TransactionId);
                transaction.Amount = model.Amount;
                transaction.Description = model.Description;
                transaction.TransactionDate = model.TransactionDate;
                dataContext.SubmitChanges();
            }

            return RedirectToAction("Index", new { id = model.BankAccountId });
        }