// GET: JournalEntry
 public ActionResult NewEntry()
 {
     var gLmger = new GLManager();
     var cOAmger = new AccountManager();
     var viewModel = new NewEntryVM();
     var ChartofAccount = cOAmger.GetAllAccount();
     var AccountNames = ChartofAccount.Attachment.Select(a => a.AccountName).ToList();
     viewModel.AccountNameSelect = new SelectList(AccountNames);
     return View(viewModel);
 }
        //Edit Account
        public ActionResult EditChartofAccount(int AccountID)
        {
            var viewModel = new EditChartofAccountVM();
            var mger = new AccountManager();

            viewModel.EditAccount = mger.GetAllAccount().Attachment.FirstOrDefault(m => m.AccountID == AccountID);
            viewModel.AccountTypeSelection = new SelectList(Enum.GetValues(typeof(AccountType)).Cast<AccountType>().ToList());

            return View(viewModel);
        }
 public ActionResult NewChartofAccount(NewChartofAccountVM viewModel)
 {
     var mger = new AccountManager();
     mger.AddAccount(viewModel.NewAcccount);
     return RedirectToAction("ChartOfAccountList");
 }
 // GET: ChartOfAccount
 public ActionResult ChartOfAccountList()
 {
     var mger = new AccountManager();
     var accountList = mger.GetAllAccount();
     return View(accountList.Attachment);
 }