public async Task <ActionResult> Index() { var suppliers = (await _supplierService.GetSupplier()).Items; var model = new SupplierListViewModel { Supplier = suppliers }; return(View(model)); }
public async Task <ActionResult> Index() { var products = (await _productService.GetProduct()).Items; var suppliers = (await _supplierService.GetSupplier()).Items; var model = new ProductListViewModel { ProductLists = products, SupplierLists = suppliers }; return(View(model)); }
public async Task <ActionResult> CreateSupplierCreditMemo() { var suppliers = (await _supplierService.GetSupplier()).Items; var products = (await _productService.GetProduct()).Items; var model = new CreateSupplierCreditMemoViewModel { Suppliers = suppliers, Products = products }; return(View("CreateSupplierCreditMemo", model)); }
public async Task <ActionResult> Create() { var suppliers = (await _supplierService.GetSupplier()).Items; var products = (await _productService.GetProduct()).Items; var model = new CreateSupplierCreditMemoViewModel { Suppliers = suppliers, Products = products, LoginInformations = await _sessionAppService.GetCurrentLoginInformations(), }; return(View("Create", model)); }