Ejemplo n.º 1
0
        public IActionResult Purchase()
        {
            ViewBag.ParentId = new SelectList(_db.ProductCatalogs.CatalogDll(), "value", "label");

            var defaultAccountId = _account.DefaultAccountGet();

            ViewBag.Account = new SelectList(_account.DdlList(), "value", "label", defaultAccountId);

            return(View());
        }
Ejemplo n.º 2
0
        public IActionResult GeneralExpense()
        {
            ViewBag.ExpenseCategoryId = new SelectList(_db.ExpenseCategories.ddl(), "value", "label");

            var defaultAccountId = _account.DefaultAccountGet();

            ViewBag.Account = new SelectList(_account.DdlList(), "value", "label", defaultAccountId);

            return(View());
        }
Ejemplo n.º 3
0
        public IActionResult SellingProduct()
        {
            var defaultAccountId = _account.DefaultAccountGet();

            ViewBag.Account = new SelectList(_account.DdlList(), "value", "label", defaultAccountId);

            return(View());
        }
Ejemplo n.º 4
0
        public IActionResult AddAccount()
        {
            var response = _accountCore.List();

            var defaultAccountId = _accountCore.DefaultAccountGet();

            ViewBag.DefaultAccountId = defaultAccountId;
            ViewBag.Account          = new SelectList(_accountCore.DdlList(), "value", "label", defaultAccountId);

            return(View(response));
        }
Ejemplo n.º 5
0
        public IActionResult Selling()
        {
            ViewBag.Account = new SelectList(_account.DdlList(), "value", "label");

            return(View());
        }