//GET: GlPosting/Create
        public ActionResult Create()
        {
            GlPostingViewModels viewModel = new GlPostingViewModels()
            {
                CreditAccount = _contextAccount.GetAll(),
                DebitAccount  = _contextAccount.GetAll()
            };

            return(View(viewModel));
        }
        //GET
        public ActionResult PostTransaction()
        {
            EodLogic logic = new EodLogic();

            if (logic.isBusinessClosed())
            {
                return(PartialView("_Closed"));
            }
            ViewBag.ErrorMessage   = "";
            ViewBag.CrGlAccount_Id = new SelectList(glActRepo.GetAll(), "ID", "AccountName");;
            ViewBag.DrGlAccount_Id = new SelectList(glActRepo.GetAll(), "ID", "AccountName");
            return(View());
        }
Exemple #3
0
        public IEnumerable <GlAccount> GetAll()
        {
            var values = _db.GetAll();

            return(values);
        }
Exemple #4
0
        //
        // GET: /GlAccount/
        public ActionResult Index()
        {
            var glaccounts = glactRepo.GetAll();

            return(View(glaccounts.ToList()));
        }