public IActionResult CreateView() { ViewData["BankAccount"] = POSHelper.GetBankAccountSelectItems(_work.BankAccount); ViewData["Employee"] = POSHelper.GetEmployeeSelectItems(_work.Employee); return(PartialView("_LoanReceivableCreateView")); }
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)); }