Exemple #1
0
        public IActionResult CreateView()
        {
            ViewData["BankAccount"] = POSHelper.GetBankAccountSelectItems(_work.BankAccount);
            ViewData["Employee"]    = POSHelper.GetEmployeeSelectItems(_work.Employee);

            return(PartialView("_LoanReceivableCreateView"));
        }
Exemple #2
0
        public IActionResult EditView(int loanReceivableId)
        {
            ViewData["BankAccount"] = POSHelper.GetBankAccountSelectItems(_work.BankAccount);
            ViewData["Employee"]    = POSHelper.GetEmployeeSelectItems(_work.Employee);

            var loanReceivable = _work.LoanReceivable.GetWithBankAccountAndEmployee(loanReceivableId);

            return(PartialView("_LoanReceivableEditView", loanReceivable));
        }