Exemple #1
0
        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));
        }
Exemple #3
0
        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));
        }
Exemple #4
0
        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));
        }