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()); }
public IActionResult SellingProduct() { var defaultAccountId = _account.DefaultAccountGet(); ViewBag.Account = new SelectList(_account.DdlList(), "value", "label", defaultAccountId); return(View()); }
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()); }
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)); }
//Selling receipt public async Task <IActionResult> SellingReceipt(int?id) { if (id == null) { return(RedirectToAction("Selling")); } var model = await _db.Selling.SellingReceiptAsync(id.GetValueOrDefault(), _db).ConfigureAwait(false); if (model == null) { return(RedirectToAction("Selling")); } var defaultAccountId = _account.DefaultAccountGet(); ViewBag.Account = new SelectList(_account.DdlList(), "value", "label", defaultAccountId); return(View(model)); }